Skip to content

Commit

Permalink
fix: fix vite config remove broken plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherlockouo committed Dec 5, 2023
1 parent ee4aa74 commit 897b371
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions packages/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { visualizer } from 'rollup-plugin-visualizer'
import { VitePWA } from 'vite-plugin-pwa'
import filenamesToType from './vitePluginFilenamesToType'
import { appName } from './utils/const'
import viteImagemin from 'vite-plugin-compress'

dotenv.config({ path: join(__dirname, '../../.env') })
const IS_ELECTRON = process.env.IS_ELECTRON
Expand All @@ -31,33 +30,6 @@ export default defineConfig({
},
},
plugins: [
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
}
]
}
}),
visualizer({
emitFile: true,
filename: "stats.html",
Expand Down

0 comments on commit 897b371

Please sign in to comment.