Build tool with zero initial configuration
- Webpack 3
- Babel 7
- Optional static views with pug template engine (for static websites)
yarn add @dvhb/cli
Add scripts to package.json
"scripts": {
...
"start": "dvhb server",
"build": "dvhb build"
...
}
See basic starter project for more details examples/basic.
- Add code to
src/
. - Build and watch changes in
src/
withyarn start
- Open localhost:3000
- Node.js v7+ and npm