- Install
node
(comes withnpm
). Suggested version expressed in .nvmrc file. - Install
yarn
yarn
- install dependenciesyarn start
- start development serveryarn test
- run minimal tests (eg: lint javascript files)
- Make a new directory under
src
prefixed withpage-
, e.g.src/page-login
, with at least atmpl.html
- In both
webpack.dev.js
andwebpack.prod.js
, extendmodule.exports.entry
andmodule.plugins
appropriately.
yarn build
to preparehtml
,css
,js
files indist/
directoryyarn preview
- run build and serve production files locally
- Based on webpack-static-html-pages