save
This commit is contained in:
parent
83586e1d56
commit
6a629dd65b
@ -61,46 +61,45 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
// viteCompression({
|
viteCompression({
|
||||||
// verbose: false,
|
verbose: false,
|
||||||
// disable: false,
|
disable: false,
|
||||||
// threshold: 10240,
|
threshold: 10240,
|
||||||
// algorithm: 'brotliCompress',
|
algorithm: 'brotliCompress',
|
||||||
// }),
|
}),
|
||||||
// viteCompression({
|
viteCompression({
|
||||||
// verbose: false,
|
verbose: false,
|
||||||
// disable: false,
|
disable: false,
|
||||||
// algorithm: 'gzip',
|
algorithm: 'gzip',
|
||||||
// threshold: 10240,
|
threshold: 10240,
|
||||||
// })
|
}),
|
||||||
//图片压缩
|
viteImagemin({
|
||||||
// viteImagemin({
|
gifsicle: {
|
||||||
// gifsicle: {
|
optimizationLevel: 7,
|
||||||
// optimizationLevel: 7,
|
interlaced: false,
|
||||||
// interlaced: false,
|
},
|
||||||
// },
|
optipng: {
|
||||||
// optipng: {
|
optimizationLevel: 7,
|
||||||
// optimizationLevel: 7,
|
},
|
||||||
// },
|
mozjpeg: {
|
||||||
// mozjpeg: {
|
quality: 20,
|
||||||
// quality: 20,
|
},
|
||||||
// },
|
pngquant: {
|
||||||
// pngquant: {
|
quality: [0.8, 0.9],
|
||||||
// quality: [0.8, 0.9],
|
speed: 4,
|
||||||
// speed: 4,
|
},
|
||||||
// },
|
svgo: {
|
||||||
// svgo: {
|
plugins: [
|
||||||
// plugins: [
|
{
|
||||||
// {
|
name: 'removeViewBox',
|
||||||
// name: 'removeViewBox',
|
},
|
||||||
// },
|
{
|
||||||
// {
|
name: 'removeEmptyAttrs',
|
||||||
// name: 'removeEmptyAttrs',
|
active: false,
|
||||||
// active: false,
|
},
|
||||||
// },
|
],
|
||||||
// ],
|
},
|
||||||
// },
|
}),
|
||||||
// }),
|
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user