Modifies react-scripts 2.0 config to emit a single chunk
npm install react-app-rewire-disable-chunksreact-scripts v1, your JavaScript was always compiled to a single file. InThis rewiring allows you to easily customise your create-react-app application
without having to eject it. You only need to install this package alongsidereact-app-rewired, and make a couple of changes to your package.json.
``sh`
yarn add -D react-app-rewired react-app-rewire-disable-chunks
2. Edit your package.json scripts to use react-app-rewired instead of react-scripts.package.json
3. Add this line to your :
`json`
"config-overrides-path": "node_modules/react-app-rewire-disable-chunks",
That's it! Your app should now be compiled to just /static/js/bundle.js in devmain.[hash].js` for production builds.
mode, or