UNPKG

701 BMarkdownView Raw
1# Dvhb Webpack with zero initial configuration
2
3## Features
4
5- Webpack
6- Babel, ES2015 + modules, Stage 0 preset
7- Optional static views with pug template engine (for static websites)
8
9## Install in existing project
10
11```bash
12npm install --save-dev @dvhb/webpack
13```
14
15Add scripts to package.json
16
17```bash
18"scripts": {
19 ...
20 "start": "dvhb-webpack server",
21 "build": "dvhb-webpack build"
22 ...
23}
24```
25
26See basic starter project for more details [examples/basic](https://github.com/dvhbru/webpack/tree/master/examples/basic).
27
28## Workflow
29
30- Add code to `src/`.
31- Build and watch changes in `src/` with `npm start`
32- Open [localhost:3000](http://localhost:3000)
33
34## Requirements
35
36- Node.js v5+ and npm