- 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
srcprefixed withpage-, e.g.src/page-login, with at least atmpl.html - In both
webpack.dev.jsandwebpack.prod.js, extendmodule.exports.entryandmodule.pluginsappropriately.
yarn buildto preparehtml,css,jsfiles indist/directoryyarn preview- run build and serve production files locally
- Based on webpack-static-html-pages