Created by: viankakrisna
POC for https://github.com/facebookincubator/create-react-app/issues/1070
- Watching build mode by running
npm run watch
- Add
react-scripts/scripts/watch.js
andreact-scripts/config/webpack.config.watch.js
- Add prefix to the generated build files so we know that it's a development build. example:
development.main.hash321.js
- Cleans the build folder every compile, if the asset hash changed. So we don't end up with stale files in there. using
packages/react-dev-utils/cleanBuildFolder.js
- Prompts if the use case for using this mode is fulfilled at the start of the script, so the user won't accidentally using this mode if what they building doesn't need it.