Skip to content

Commit

Permalink
去除打包压缩图片配置
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed Apr 2, 2024
1 parent 16aed7d commit 7cede1e
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,33 74,33 @@ export default defineConfig({
// algorithm: 'gzip',
// threshold: 10240,
// }),
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,
},
],
},
}),
// 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,
// },
// ],
// },
// }),
],
resolve: {
alias: {
Expand Down

0 comments on commit 7cede1e

Please sign in to comment.