gabrielBusta / webpack-static-html-pages

Webpack example to deal with multiple static html pages

Home Page:https://ivarprudnikov.github.io/webpack-static-html-pages/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static html pages with Webpack 4

Build Status js-standard-style GitHub issues GitHub last commit

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/

Build

Prerequisites

  • Node & NPM

Run locally

  • npm i - install dependencies
  • npm start - start development server

Where are generated files?

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

Run production build

  • npm run preview

Production

  • npm run build to prepare html, css, js files in dist/ directory

Preview deployed assets on gh-pages branch

Credits

About

Webpack example to deal with multiple static html pages

https://ivarprudnikov.github.io/webpack-static-html-pages/

License:MIT License


Languages

Language:JavaScript 54.6%Language:HTML 28.8%Language:CSS 16.6%