html-webpack-plugin icon indicating copy to clipboard operation
html-webpack-plugin copied to clipboard

can i add a 'path' option in the plugin?

Open Wellaiyo opened this issue 10 years ago • 2 comments

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 || '')

Wellaiyo avatar Apr 09 '16 08:04 Wellaiyo

Why can't you use the public path or use a custom template?

jantimon avatar Apr 10 '16 16:04 jantimon

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.

lock[bot] avatar May 31 '18 23:05 lock[bot]