An open API service indexing awesome lists of open source software.

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

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(),
]
}
```