#webpack-starter
A simple webpack 4 starter project for your basic web development needs.
Table of contents:
Features
- Separated development and production webpack settings you can understand
- Pug
- SCSS
- ES6 / TS
- CSS Vendor prefixing
- Development server
- Sourcemaps
- ESLint
- StyleLint
- Production optimizations
Getting started
Installation
You can install webpack-starter
by simply forking the repo:
# clone the repo
$ git clone https://github.com/...
$ cd webpack-starter
Development & Builds
Below are the scripts to start, build, this project:
Install dependencies
# use `yarn` or `npm` to install the dependencies
$ yarn
or
$ npm i
Development servers (webpack-dev-server)
# dev server
$ yarn start
Build
# development build
$ yarn build:dev
# production build
$ yarn build