-
Notifications
You must be signed in to change notification settings - Fork 144
Injecting font files links #55
Comments
It should work, assuming there's a preload-webpack-plugin/index.js Line 120 in e29cdd4
It's not going to add the |
Could you elaborate on that? |
I think the best reference is https://webpack.js.org/guides/asset-management/#loading-fonts If you're following the steps there to include |
@jeffposnick assets processed by file-loader are not included. So this test preload-webpack-plugin/index.js Line 120 in e29cdd4
It was the purpose of this PR #36 |
@frlinw Thanks for that additional context—I'll take some action on that PR. |
#36 is merged, and included in the |
Closing now that the 2.3.0 has the update to support all assets being included. If you're running into trouble still, let us know. |
Hello,
I tried to have my custom fonts preloaded :
<link rel="preload" href="/static/fonts/FiraGO-Regular.b68.woff2" as="font" type="font/woff" crossorigin="anonymous">
but I wasnt able with several configuration options.
Where should the font files be imported to force the plugin to generate the
<link>
s?Is the plugin capable of that? (I read some old Pull Requests hinting this is not possible)
The text was updated successfully, but these errors were encountered: