This commit is contained in:
Phoenix 2025-04-16 19:26:50 +08:00
parent bfd42e5364
commit 2036e060ac
3 changed files with 11363 additions and 30 deletions

View File

@ -1,6 +1,5 @@
import dotenv from 'dotenv' import dotenv from 'dotenv'
import process from 'node:process' import process from 'node:process'
import imagemin from 'vite-plugin-imagemin'
import { currentLocales } from './i18n/i18n' import { currentLocales } from './i18n/i18n'
import fs from 'fs' import fs from 'fs'
import path from 'path' import path from 'path'
@ -127,33 +126,6 @@ export default defineNuxtConfig({
], ],
}, },
plugins: [ plugins: [
imagemin({
gifsicle: {
optimizationLevel: 7,
interlaced: false
},
optipng: {
optimizationLevel: 7
},
mozjpeg: {
quality: 70
},
pngquant: {
quality: [0.8, 0.9],
speed: 4
},
svgo: {
plugins: [
{
name: 'removeViewBox'
},
{
name: 'removeEmptyAttrs',
active: false
}
]
}
})
] ]
}, },

View File

@ -53,8 +53,7 @@
"sass-loader": "^16.0.4", "sass-loader": "^16.0.4",
"sharp": "^0.33.5", "sharp": "^0.33.5",
"typescript": "~5.7.2", "typescript": "~5.7.2",
"vant": "^4.9.15", "vant": "^4.9.15"
"vite-plugin-imagemin": "^0.6.1"
}, },
"pnpm": { "pnpm": {
"peerDependencyRules": { "peerDependencyRules": {

11362
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff