Example of a simple Webpack configuration. Webpack will watch for changes and automatically generate new bundles.
npm i- Develop:
npm startand open uphttp://localhost:8080/ - Build for production:
npm run build
- Simple Webpack setup to get things started.
- Write ES6 JavaScript
- Webpack dev server
- Development and production configuration files.
- Hot Module Replacement (HMR) (Including html changes)
- Stylelint (.stylelintrc)
- Eslint (.eslintrc)
- Travis
- Editorconfig
- Loaders for css, fonts and images
- Separate css bundle
- Babel presets via .babelrc
- Minified production build
- Hashed/fingerprinted output files, css and js
- Postcss with plugin setup via postcss.config.js