Webpack 5 boilerplate using Babel
, PostCSS
, Sass
, Normalize
, .
Clone this repo and npm install.
npm i || yarn
npm run serve || yarn serve
You can view the development server at localhost:8080
.
npm run build || yarn build
webpack
- Module and asset bundler.webpack-cli
- Command line interface for webpackwebpack-dev-server
- Development server for webpackwebpack-merge
- Simplify development/production configurationcross-env
- Cross platform configuration
@babel/core
- Transpile ES6+ to backwards compatible JavaScript@babel/plugin-proposal-class-properties
- Use properties directly on a class (an example Babel config)@babel/preset-env
- Smart defaults for Babel
babel-loader
- Transpile files with Babel and webpacksass-loader
- Load SCSS and compile to CSSnode-sass
- Node Sass
postcss-loader
- Process CSS with PostCSSpostcss-preset-env
- Sensible defaults for PostCSScss-loader
- Resolve CSS importsstyle-loader
- Inject CSS into the DOMgroup-css-media-queries-loader
- Groups media queriesxml-loader
- Plugin for loading XML filescsv-loader
- Automatically converts data types, making it easy to import and start using data
clean-webpack-plugin
- Remove/clean build folderscopy-webpack-plugin
- Copy files to build directoryhtml-webpack-plugin
- Generate HTML files from templatemini-css-extract-plugin
- Extract CSS into separate filesoptimize-css-assets-webpack-plugin
- Optimize and minimize CSS assetsimagemin-webp-webpack-plugin
- Compresses and compiles images to WebPwebpack-bundle-analyzer
- Visualizes the size of the output files of the Webpack
This project is open source and available under the MIT License.