Sensible webpack 5 boilerplate using Babel, Less.
Clone this repo and npm install.
yarn install
npm dev
You can view the development server at localhost:8080
.
npm run build
Note: Install http-server globally to deploy a simple server.
npm i -g http-server
You can view the deploy by creating a server in dist
.
cd dist && http-server
-
webpack
- Module and asset bundler. -
webpack-cli
- Command line interface for webpack -
webpack-dev-server
- Development server for webpack -
webpack-merge
- Simplify development/production configuration -
cross-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 webpack -
css-loader
- Resolve CSS imports -
style-loader
- Inject CSS into the DOM
-
clean-webpack-plugin
- Remove/clean build folders -
copy-webpack-plugin
- Copy files to build directory -
html-webpack-plugin
- Generate HTML files from template -
mini-css-extract-plugin
- Extract CSS into separate files -
css-minimizer-webpack-plugin
- Optimize and minimize CSS assets
-
eslint
- Enforce styleguide across application -
eslint-config-prettier
- Implement prettier rules-
-
prettier
- Dependency forprettier-webpack-plugin
plugin
-
-
-
eslint-import-resolver-webpack
- Throw exceptions for import/export in webpack
This project is open source and available under the MIT License.