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
webpackPreload not working at all #7920
Comments
Thanks for your report. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem. |
I think this is not yet supported by the html-plugin. You could file an issue there. Anyway using preload in your example is incorrect. It should use prefetch instead. Note that prefetch doesn't require html-plugin support and should work. |
@sokra The docs do not mention the need to use html-plugin for preload. |
That's true. It's mentioned here: https://medium.com/webpack/link-rel-prefetch-preload-in-webpack-51a52358f84c in the FAQ Please send a PR to the docs adding it. |
Yes. This PR allows to use prefetch without need to generate |
@sokra I understand. I will work on a PR to the docs. Thanks ;) |
@webpack-bot move to webpack/webpack.js.org
|
I've moved it to webpack/webpack.js.org. |
What is the current behavior?
I am experiencing issues while using
webpackPreload
.No script with
rel="preload"
is added to the<head>
.Steps to reproduce
I am using
webpack@4.16.5
.What is the expected behavior?
I expect the
<link rel="preload" as="script" href="utilities.js">
to be added.Other relevant information:
webpack version: 4.16.5
Node.js version: 8.11.3
Operating System: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: