webpack5-starter-kit
Webpack 5 with webpack-dev-server configuration (and Web Components).
Dependencies
- Node v12.16.0 (or later)
- Yarn v1.22 (or later) | NPM v6.13.4 (or later)
Installation via CLI
- Install w5kit-cli
npm install -g w5kit-cli
- Launch the CLI
w5kit
- Choose
Vanilla JS
Installation via Clone
- Clone this repository
git clone https://github.com/king-prawns/webpack-starter-kit.git [your-app-name]
Remove the .git folder and change details within:
package.json
src/manifest.json
- Install dependencies
$ cd your-app-name
$ yarn
Available tasks
# Runs development server (Webpack dev server)
$ yarn dev
# Build command
$ yarn build
# Lint with ESLint
$ yarn lint
# Run Flow
$ yarn flow
# Run unit tests (ava + instanbul)
$ yarn test
# Runs http-server on port 8082
$ yarn httpserver
Features
- Webpack 5
- Webpack Dev Server
- HMR
- Babel
- Flow
- EsLint
- StyleLint
- Postcss
- Autoprefixer
- Ava
- nyc
- Web Components
- Webpack Plugins: Html, Copy, MiniCssExtract, Define