Open
Description
I tried your config and it works, resulting html has prefetch and preload links. I myself have config which preloads fonts and prefetches js and css and it works. Perhaps something else doesn't work in yout case. Are you using version 2?
new PreloadWebpackPlugin({
rel: 'preload',
as(entry) {
if (/\.(woff(2)?)(\?v=[0-9]\.[0-9]\.[0-9])?$/.test(entry)) {
return 'font';
}
},
fileWhitelist: [/\.(woff(2)?)(\?v=[0-9]\.[0-9]\.[0-9])?$/],
include: 'allAssets'
}),
new PreloadWebpackPlugin({
rel: 'prefetch',
}),
Originally posted by @lkarmelo in #22 (comment)
Metadata
Metadata
Assignees
Labels
No labels