This commit is contained in:
2026-02-12 21:09:50 +08:00
parent bbb8f3bbaf
commit a94815399f
10 changed files with 443 additions and 318 deletions

View File

@@ -1,24 +1,10 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import viteImagemin from 'vite-plugin-imagemin'
//123
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
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 },
],
},
}),
],
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,