https://github.com/iyonaga/html-webpack-additional-template-plugin
A plugin for setting multiple HTML template simply
https://github.com/iyonaga/html-webpack-additional-template-plugin
html-webpack-plugin webpack
Last synced: 5 months ago
JSON representation
A plugin for setting multiple HTML template simply
- Host: GitHub
- URL: https://github.com/iyonaga/html-webpack-additional-template-plugin
- Owner: iyonaga
- License: mit
- Created: 2018-10-23T09:21:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T16:25:36.000Z (over 3 years ago)
- Last Synced: 2024-05-28T22:47:49.578Z (almost 2 years ago)
- Topics: html-webpack-plugin, webpack
- Language: JavaScript
- Homepage:
- Size: 635 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html-webpack-additional-template-plugin
A plugin for setting multiple HTML template simply
## Installation
```shell
npm install --save html-webpack-additional-template-plugin
```
## Usage
#### webpack.config.js
```javascript
const HtmlWebpackAdditionalTemplatePlugin = require('html-webpack-additional-template-plugin');
module.exports = {
// ...
plugins: [
new HtmlWebpackPlugin({
filename: 'index.html',
template: './src/views/index.html',
additionalTemplate: [
{
filename: 'about/index.html',
template: './src/views/about.html'
},
{
filename: 'contact/index.html',
template: './src/views/contact.html'
}
]
}),
new HtmlWebpackAdditionalTemplatePlugin(),
]
}
```