Minimal webpack 5 boilerplate using Babel, Sass with a hot dev server and a production build.
git clone https://github.com/Seogeurim/webpack-es6-boilerplate.git
cd webpack-es6-boilerplate
yarn install
Webpack dev server runs at localhost:8000
.
yarn run dev
Build outputs are created in dist
.
yarn run build
webpack
- Module and asset bundler.webpack-cli
- Command line interface for webpackwebpack-dev-server
- Development server for webpackwebpack-merge
- Simplify development/production configuration
@babel/core
- Transpile ES6+ to backwards compatible JavaScript@babel/preset-env
- Smart preset for Babel
babel-loader
- Transpile files with Babel and webpacksass-loader
- Load SCSS and compile to CSSsass
- A pure JavaScript implementation of Sass
css-loader
- Resolve CSS importsstyle-loader
- Inject CSS into the DOM
clean-webpack-plugin
- Remove/clean build foldershtml-webpack-plugin
- Generate HTML files from templatemini-css-extract-plugin
- Extracts CSS file per JS file which contains CSS
eslint
- Enforce styleguide across applicationeslint-config-airbnb-base
- Base JS styleguide of Airbnbeslint-config-prettier
- Implment prettier ruleseslint-plugin-import
- Implment import ruleseslint-plugin-prettier
- Dependency for prettier usage with ESLintprettier
- code formatter
This project is licensed under the MIT License.