preload-webpack-plugin
preload-webpack-plugin copied to clipboard
crossorigin='crossorigin' issue on fonts
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.