Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

webpack-boilerplate

> 编程语言
Open source

‎ A sensible webpack 5 boilerplate.

2.4K stars0 likes2 views
WebsiteGitHub

About

‎ A sensible webpack 5 boilerplate.

webpack Boilerplate

Sensible webpack 5 boilerplate using Babel, PostCSS and Sass.

Installation

Clone this repo and npm install.

bash
npm i

Usage

Development server

bash
npm start

You can view the development server at localhost:8080.

Production build

bash
npm run build

Note: Install http-server globally to deploy a simple server.

bash
npm i -g http-server

You can view the deploy by creating a server in dist.

bash
cd dist && http-server

Features

  • webpack
  • Babel
  • Sass
  • PostCSS

Dependencies

webpack

  • 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

  • @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

Loaders

  • babel-loader - Transpile files with Babel and webpack
  • sass-loader - Load SCSS and compile to CSS
    • sass - Node Sass
  • postcss-loader - Process CSS with PostCSS
    • postcss-preset-env - Sensible defaults for PostCSS
  • css-loader - Resolve CSS imports
  • style-loader - Inject CSS into the DOM

Plugins

  • 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

Linters

  • eslint - Enforce styleguide across application
  • eslint-config-prettier - Implement prettier rules
      • prettier - Dependency for prettier-webpack-plugin plugin
  • eslint-import-resolver-webpack - Throw exceptions for import/export in webpack

Author

  • Tania Rascia

License

This project is open source and available under the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptwebpackwebpack-boilerplatewebpack5

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言