A basic webpack 4 boilerplate.
- Clone this repository.
- Install the dependencies.
$ npm install
- Start the local webpack-dev-server.
$ npm run serve
- Navigate to http://localhost:3000.
When building, your code will be bundled and outputed to /dist
.
$ npm run build
$ npm run build:prod
- Babel
- Sass
- Autoprefixer
- File loading via file-loader
- Webpack dev server via webpack-dev-server
- Minification of HTML, CSS, JavaScript and SVG
- clean-webpack-plugin