Files
rubix/vite.config.js

18 lines
445 B
JavaScript
Raw Permalink Normal View History

2024-03-22 15:02:23 +05:30
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
2024-05-13 12:39:28 +05:30
import imagemin from 'vite-plugin-imagemin';
2024-03-22 15:02:23 +05:30
// https://vitejs.dev/config/
export default defineConfig({
2024-05-13 12:39:28 +05:30
plugins: [
react(),
imagemin({
gifsicle: { optimizationLevel: 3 },
optipng: { optimizationLevel: 5 },
mozjpeg: { quality: 80, progressive: true },
pngquant: { quality: [0.7, 0.9], speed: 4 },
svgo: {},
}),
],
2024-03-22 15:02:23 +05:30
})