`deleteOriginalAsset` option do not work in loader
cap-Bernardito opened this issue · 4 comments
Expected Behavior
We transform the image into a .webp
and use deleteOriginalAsset
option
We should to get only transformed image.webp
Actual Behavior
We transform the image into a .webp
and use deleteOriginalAsset
option
We get image.webp
and original image
The problem relates to loader
in the image-minimizer-webpack-plugin
Hello. I didn't find deleteOriginalAsset
option, but i find deleteOriginalAssets
. Probably you misspelled it
Yep, but bug still exists
I was able to confirm this bug in image-minimizer-webpack-plugin@2.2.0
when I used the [path]
substitution in the filename option. Also, only the top-most plugin instance appeared to be affected (the last in the chain). It seemed to work as expected otherwise.
Fixed in master, we redesign approach for generation and it will be documented in README