This is a forkable example of static site (plain html/css/javascript) assembled with webpack.
Article explaining how this example was created: https://www.ivarprudnikov.com/static-website-multiple-html-pages-using-webpack-plus-github-example/
- Node & NPM
npm i
- install dependenciesnpm start
- start development server
In development
mode webpack
does not write generated files to disk, in order to change it
switch devServer.writeToDisk
to true
in webpack.dev.js
npm run preview
npm run build
to preparehtml
,css
,js
files indist/
directory
Preview deployed assets on gh-pages
branch
- @lifenautjoe and his webpack-starter-basic