Closed pavelloz closed 7 months ago
Hello @pavelloz,
I try to fix it. Thanks for the issue report.
@pavelloz
the issue is fixed in the version 3.9.1
@pavelloz
define the chunkFilename
in the js.chunkFilename
plugin option:
new HtmlBundlerPlugin({
// Documentation: https://github.com/webdiscus/html-bundler-webpack-plugin
entry: 'src/',
js: {
chunkFilename: '[name].[chunkhash:4].js', // <= define this option here (the same as output.chunkFilename)
inline: production, // inline JS for production mode, extract JS file for development mode
},
css: {
inline: production, // inline CSS for production mode, extract CSS file for development mode
},
minify: 'auto', // minify html
}),
the issue is fixed in the version 3.9.1
I confirm - issue is fixed on my side 👍
Thank you :)
The tipp
Thanks, I will experiment with it :)
Current behaviour
When i try to use two prefetched chunks, i get this error:
Note:
There is no
filename:
in the config, but adding it does not help.Reproduction Example
Uncomment lines 5-7 and run
npm run build
to see the error. https://github.com/pavelloz/webpack-tailwindcss/blob/7d9bd8d22589a84f0a916faa3bd3686ae7f01f52/src/js/app.js#L4-L15The problematic code looks like this:
Environment