1.0.1 • Published 7 years ago
html-resources-replace v1.0.1
Webpack plugin: html-resources-replace
example
var HtmlResourcesReplace = require('HtmlResourcesReplace');
module.exports = {
entry: {
test_build1:"./src/test1.js",
test_build2:"./src/test2.js"
},
output: {
path: "./build",
filename: "[name][chunkhash].js"
},
plugins: [
new HtmlResourcesReplace({
list: [
{
html: 'test1.html',
resource: 'test_build1'
},
{
html: 'test2.html',
resource: 'test_build1',
//or point a custom path for test2.html
dist: 'build/custom_path/'
}
]
})
]
};