@intervolga/html-webpack-asset-template-plugin
v1.0.3
Published
WebPack 2+ plugin for html-webpack-plugin template replacement on the fly
Downloads
51
Readme
html-webpack-asset-template-plugin
Replace html-webpack-plugin template with new one from emitted assets. Replacement accuires only if asset name equals filename in HtmlWebpackPlugin instance.
Installation:
Using npm:
$ npm install --save-dev @intervolga/html-webpack-asset-template-plugin
Configuration:
const HtmlWebpackAssetTemplatePlugin = require('@intervolga/html-webpack-asset-template-plugin');
module.exports = {
plugins: [
new HtmlWebpackPlugin({
filename: 'some-emitted-file.html',
}),
new HtmlWebpackAssetTemplatePlugin()
]
}