html-webpack-plugin
html-webpack-plugin copied to clipboard
can i add a 'path' option in the plugin?
Like this:
new HtmlWebpackPlugin({
path: './scripts', // based on output.publicPath
filename: '../index.html',
template: './static/index.html',
inject: 'body'
})
I made a change in the 350th line of index.js, and it works.
? path.resolve(compilation.mainTemplate.getPublicPath({hash: webpackStatsJson.hash}), self.options.path || '')
Why can't you use the public path or use a custom template?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.