I have installed react-app-rewired
as dev dependency according to docs.
"devDependencies": {
//...
"react-app-rewired": "^2.1.8",
},
Now I'd like to make a production build. When I use
NODE_ENV=production yarn install
consequent yarn build
says that react-app-rewired: not found
(because it is in dev only).
- Does
yarn build
implies production under the hood? - If so, why do I need all the dev dependencies to be installed to make a production build?
- Should I get rid of NODE_ENV or move react-app-rewired to production then?