/webpack-html-template

How to template the common part of html using webpack

Primary LanguageJavaScript

webpack-html-template

This was made for article of my blog. How to template the common part of html using webpack.

Article Link : How to template the common part of html using webpack(wrote in Japanese)

Features

Quick start

  1. Clone this repo
git clone https://github.com/chocolat5/webpack-html-template.git <PROJECT_NAME>
  1. Move to the appropriate directory
cd <PROJECT_NAME>
  1. Install npm package
npm install --save-dev
  1. Run the project
npm run start

or

npm start
  1. See the browser

Open http://localhost:8080/ in your browser

License

MIT License

References

HTML Webpack Plugin https://github.com/jantimon/html-webpack-plugin
html-loader https://github.com/webpack-contrib/html-loader