mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
refactor(vite): set legalComments none in prod mode
This commit is contained in:
parent
4dd99b5240
commit
6a4468193b
@ -33,10 +33,7 @@ export default defineConfig({
|
||||
},
|
||||
sourcemap: isDev
|
||||
},
|
||||
esbuild: {
|
||||
drop: ['console', 'debugger'],
|
||||
legalComments: 'none'
|
||||
},
|
||||
esbuild: isProd ? { legalComments: 'none' } : {},
|
||||
optimizeDeps: {
|
||||
noDiscovery: isDev
|
||||
}
|
||||
@ -96,11 +93,6 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
esbuild: isProd
|
||||
? {
|
||||
drop: ['console', 'debugger'],
|
||||
legalComments: 'none'
|
||||
}
|
||||
: {}
|
||||
esbuild: isProd ? { legalComments: 'none' } : {}
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user