An opinionated starter kit using Webpack 5, SCSS, PostCSS, Browsersync & Babel.
[email protected]:flex2016/Webpack-5-Starter.git my-project
cd my-project
npm i
npm run dev
You can view the development server at localhost:8080
.
You can view the development BrowserSync server at localhost:3000
.
You can view the development BrowserSync server setting at localhost:3001
.
npm run build
- webpack
- Babel
- Sass
- PostCSS
- Browsersync for live reload and responsive design/development.
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 defaults for Babel
babel-loader
- Transpile files with Babel and webpacksass-loader
- Load SCSS and compile to CSSnode-sass
- Node Sasspostcss-loader
- Process CSS with PostCSSpostcss-preset-env
- Sensible defaults for PostCSScss-loader
- Resolve CSS importsstyle-loader
- Inject CSS into the DOM
Auto Prefixer
- Vendor prefixes by BrowserCSS Nano
- Minifies Cssclean-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 files
This project is open source and available under the MIT License.