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
- Weboack 4
- Webpack dev server
- Babel
- HTML Loader
Quick start
- Clone this repo
git clone https://github.com/chocolat5/webpack-html-template.git <PROJECT_NAME>
- Move to the appropriate directory
cd <PROJECT_NAME>
- Install npm package
npm install --save-dev
- Run the project
npm run start
or
npm start
- 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