Just an example of how you can make your webpack config more declarative an re-usable.
You can have a generic webpack.config.js
that includes most of your common setup (loaders, plugins and all that)
and an attribute in your project's package.json
(or anywhere you think it makes sense) containing your project's
entries or any other setup you might want to change.
npm start
- live reload,http://localhost:8000
npm run build
- build to dist foldernpm run build -- -p
- production build to foldernpm run watch
- watch to dist folder