-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when used dynamic import in JS with magic comments webpackPrefetch #88
Comments
Hello @pavelloz, I try to fix it. |
webdiscus
added a commit
that referenced
this issue
Apr 10, 2024
webpackPrefetch
webpackPrefetch
the issue is fixed in the version |
The tippdefine the 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
}), |
I confirm - issue is fixed on my side 👍 Thank you :)
Thanks, I will experiment with it :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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-L15
The problematic code looks like this:
Environment
The text was updated successfully, but these errors were encountered: