Package Exports
- react-app-rewired/scripts/build
- react-app-rewired/scripts/start
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-app-rewired) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
First Things First
Create React App is an amazing tool with sensible defaults.
That said, I for one would like to be able to tweak the webpack config without needing to 'eject' in turn losing all the benefits of the project (future updates etc...). You could also create a fork, but syncing is no fun.
Let's tweak the config.
#How to rewire your create-react-app project
- Copy the
config-overrides.js
file into your projects root directory - Tweak
config-overrides.js
as needed see the (examples)[#] directory of this repo - Add the rewire scripts to your package.json
"scripts": {
"rewire:start": "node ./node_modules/react-app-rewired/scripts/start",
"rewire:build": "node ./node_modules/react-app-rewired/scripts/build"
}
#Commands
- npm run rewire:start
- npm run rewire:build