Skip to content

m1mik/WebpackMustHave

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebpackMustHave

Webpack version: 4.41.3

How to run project

  1. Open project in VSCode (for example)
  2. Run command npm i in terminal (console) for installing all required packages (Node.js is required: https://nodejs.org/en/)
  3. For builing project you can use the following commands:
    • npm run build-prod - building production version (minimized and optimized). The project will be builded into build folder. You can change destination in webpack.common.js (line 19)
    • npm run build-dev - building development version
    • npm run serve - building development hot-reloaded version with webpack-dev-server

Recommended VSCode extensions

Features

  • Lint. Integrated the most popular linters: ESlint, Stylelint
  • BrowserList. All required browsers are pointed in .browserslistrc, so project will be compiled according to required browsers (babel, postcss, stylint use this file)
  • BrowserList. Stylelint. Integrated no-unsupported-browser-features, so during the css,scss-coding stylelint will show on-css rule that unsupported (according to .browserslistrc)
  • MockServer. For mocking api responses integrated webpack-mock-server that supports JS,TS and hot-replacement:
  • Styles. Integrated CSS-Modules and postcss-autoprefixer, postcss-normalize, OptimizeCSSAssetsPlugin (uses css-nano for production build)

TODO. Issues

About

Must-have configuration for webpack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.0%
  • CSS 6.2%
  • HTML 3.2%
  • TypeScript 0.6%