Skip to content

lchean/webpack-starter

Repository files navigation

Simple webpack starter

Starter content

  1. Webpack + dev server
  2. Babel (ES6)
  3. ES6 Dynamic import
  4. Normalize CSS + Sass + nano compression + autoprefixer (browserslist in package.json)
  5. Postcss inline svg
  6. Eslint + Stylelint + prettier
  7. Cross-env

Install packages

npm install

Dev build + local server (http://localhost:9000/)

npm start

Dev build

npm run build:dev

Prod build

npm run build:prd

Doc

  1. Dynamic import
  2. SVG post css