Skip to content

Webpack 5 boilerplate with a configuration that helps a multiple-page application.

Notifications You must be signed in to change notification settings

sariamirza/Webpack-5-Boilerplate

Repository files navigation

Webpack 5 Boilerplate

Webpack 5 boilerplate with a configuration that helps a multiple-page application.

Installation

Clone the repo and run npm install in your terminal

npm install

Usage

There are two modes in the configuration: development and production, and each mode have three commands for building, running dev-server, and doing the both process (build and dev-server) in parallel.


Development

  • Building
    npm run dev
  • Starting dev-server
    npm run start:server-dev
  • Building and Starting dev-server
    npm start

Production

  • Building
    npm run prod
  • Starting dev-server
    npm run start:server-prod
  • Building and Starting dev-server
    npm run start:prod

Ingredients

Dependencies

webpack

ESLint

PostCSS

  • postcss-rtlcss - PostCSS plugin to build Cascading Style Sheets (CSS) with Left-To-Right (LTR) and Right-To-Left (RTL) rules using RTLCSS

  • autoprefixer - Parse CSS and add vendor prefixes to rules by Can I Use.

  • postcss-purgecss - PurgeCSS is a tool to remove unused CSS.

Pug

  • pug - Pug – robust, elegant, feature rich template engine for Node.js

SASS

  • dart-sass - Sass is a stylesheet language that’s compiled to CSS.

About

Webpack 5 boilerplate with a configuration that helps a multiple-page application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published