jpg is not rendering as file using imagemin-webp
dx1ded opened this issue · 2 comments
dx1ded commented
Situation
webpack version: 5.56.0
image-minimizer-webpack-plugin: ^3.1.2
Hello! I tried to use imagemin-webp. In the first case i took png file and it was ok, in the result i've got a image.webp file. In the second case i took .jpg file and it was rendered like base64 in src attribute but i need a .webp file. How can i do this?
Thanks!
alexander-akait commented
It is webp, you use asset modules https://webpack.js.org/guides/asset-modules/, by default webpack convert to base64 small images, if you need file please use type: "asset/resource"
, you can find more information here https://webpack.js.org/guides/asset-modules/
dx1ded commented
@alexander-akait thx <3