preload-webpack-plugin
preload-webpack-plugin copied to clipboard
Support imagesrcset and imagesizes
Are there any plans for supporting imagesrcset
and imagesizes
attributes for preloading responsive images?
Could perhaps be done by adding the following to this line:
if (attributes.as === 'image') {
const { imagesrcset, imagesizes } = options
if (imagesrcset) {
attributes.imagesrcset = imagesrcset
if (imagesizes) {
attributes.imagesizes = imagesizes
}
}
}