-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support for webpackPrefetch and webpackPreload #1150
Comments
I really like this idea and we almost integrated this feature. If we can find a better solution I would be very happy to merge a pull request |
Would it make sense to have it available as a disabled-by-default option, so that those of us who would benefit from it could enable it on production builds? |
Great approach 👍 We have something very similar for html minification |
This issue had no activity for at least half a year. It's subject to automatic issue closing if there is no activity in the next 15 days. |
Is your feature request related to a problem? Please describe.
Hello, not a problem but a useful enhancement. Webpack has support for preloading and prefetching via magic comments. Currently html-webpack-plugin doesn't make any use of this.
Describe the solution you'd like
Add preloaded and prefetched bundles to the final html output.
Describe alternatives you've considered
The alternative is to do this as a post-build step.
Additional context
https://webpack.js.org/api/module-methods/#magic-comments
The text was updated successfully, but these errors were encountered: