Open kahlan88 opened 1 year ago
I checked this issue https://github.com/vbenjs/vite-plugin-imagemin/issues/1. I tried the config settings provided in the readme of this project and js config as per Vite docs:
import viteImagemin from "vite-plugin-imagemin"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [ viteImagemin({ gifsicle: { optimizationLevel: 7, interlaced: false, }, optipng: { optimizationLevel: 7, }, mozjpeg: { quality: 20, }, pngquant: { quality: [0.8, 0.9], speed: 4, }, svgo: { plugins: [ { name: "removeViewBox", }, { name: "removeEmptyAttrs", active: false, }, ], }, }), ], });
node: 16.16.0 vite: ^4.4.5 vite-plugin-imagemin: ^0.6.1
I tried disabling webp, but it didn't make a difference in my case. I'm using latest version of vite and vite-plugin-imagemin.
webp
vite
vite-plugin-imagemin
I get no errors, and no compression on my production build:
Any ideas? Have I missed something?
I checked this issue https://github.com/vbenjs/vite-plugin-imagemin/issues/1. I tried the config settings provided in the readme of this project and js config as per Vite docs:
I tried disabling
webp
, but it didn't make a difference in my case. I'm using latest version ofvite
andvite-plugin-imagemin
.I get no errors, and no compression on my production build:![example images from build](https://github.com/vbenjs/vite-plugin-imagemin/assets/6579354/11ea30d1-dd71-41cf-8609-8524e68722c1)
Any ideas? Have I missed something?