Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

crossorigin='crossorigin' issue on fonts #116

Open
VasilikiLoukoumi opened this issue May 26, 2020 · 0 comments
Open

crossorigin='crossorigin' issue on fonts #116

VasilikiLoukoumi opened this issue May 26, 2020 · 0 comments

Comments

@VasilikiLoukoumi
Copy link

Hello, I used the plugin to preload some font files in the document head, but I see the attribute crossorigin has the value 'crossorigin'. Am I doing something wrong?
This is what I am using:
new PreloadWebpackPlugin({ rel: 'preload', as(entry) { if (/\.(woff|woff2)$/.test(entry)) return 'font'; }, fileWhitelist: [/\.(woff|woff2)$/], include: 'allAssets' })
How can I fix this? Any help is appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant