-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi there,
First of all, thanks for keeping up with this project.
I'm reaching you out as I'm trying to achieve prefetch and preload for different assets (e.g. I'd like to preload all the .css files but prefetch .js files).
Accordingly with some random post I could potentially use this syntax within the webpack plugins section:
new PreloadWebpackPlugin({
rel: 'preload',
as: 'style',
include: 'allChunks',
fileBlacklist: [/\.map|.js/],
}),
new PreloadWebpackPlugin({
rel: 'prefetch',
include: 'allChunks',
fileBlacklist: [/\.css/],
}),Unfortunately this doesn't achieve anything as the first instance of PreloadWebpackPlugin gets completely overwritten by the second one.
I'm wondering if you already have a solution, otherwise it could be good to either transform the options into an array and pass multiple configuration for different type of files or extend the current object to allow multiple rel and related rules.
It shouldn't be so difficult to implement but please let me know.
Thanks in advance.