@hiro-ui/react-scripts
It's react-scripts@4.0.2 but with our own tweaks.
Notable changes
- Node 16+
- SASS is supported out of the box (no need to install the
node-sass package)
- ESLint is disabled, because we run it with our own config through husky
- Code splitting is managed by CHUNKS_GENERATION flag (process.env.CHUNKS_GENERATION === 'true';)
- Disabled CRA REACT_APP_ prefix for .env variables' names
- used old format of manifest file
Additional to CRA flags
--desktop | hiro-desktop config added for start and build command (multiple entrypoints, NODE_TLS_REJECT_UNAUTHORIZED and HIRO_VERSION in process.env)
--measure | speed-measure activated for start and build command (it gets error "URIError: Failed to decode param '/%PUBLIC_URL%/favicon.ico'" but we ignore it because --measure is only for profiling purposes)
Additional to CRA .env configuration parameters
| CHUNKS_GENERATION | - | + | When set to true, chunks are generated for a production build. Available only for desktop apps, not for desktop. |