Skip to content

Commit

Permalink
Merge branch 'base'
Browse files Browse the repository at this point in the history
  • Loading branch information
feige996 committed Jun 4, 2024
2 parents 25cf959 + 0a5cc30 commit 42b0fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export default ({ command, mode }) => {
// 方便非h5端调试
sourcemap: VITE_SHOW_SOURCEMAP === 'true', // 默认是false
target: 'es6',
minify: 'terser',
// 开发环境不用压缩
minify: mode === 'development' ? false : 'terser',
terserOptions: {
compress: {
drop_console: VITE_DELETE_CONSOLE === 'true',
Expand Down

0 comments on commit 42b0fa8

Please sign in to comment.