new
This commit is contained in:
@@ -1,10 +1,24 @@
|
||||
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()],
|
||||
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 },
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
|
||||
Reference in New Issue
Block a user