preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

crossorigin='crossorigin' issue on fonts

Open VasilikiLoukoumi opened this issue 5 years ago • 0 comments

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.

VasilikiLoukoumi avatar May 26 '20 08:05 VasilikiLoukoumi