提交浏览器打包版本
This commit is contained in:
parent
ce27de7ecc
commit
1bac48a717
@ -4,6 +4,7 @@ import {
|
||||
} from 'vite'
|
||||
import path from 'path'
|
||||
import createVitePlugins from './vite/plugins'
|
||||
import.meta
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig(({
|
||||
@ -75,7 +76,9 @@ export default defineConfig(({
|
||||
esbuild: {
|
||||
// 生产环境下移除console和debugger
|
||||
drop: VITE_APP_ENV === 'production' ? ['console', 'debugger'] : []
|
||||
}
|
||||
},
|
||||
target: 'es2015',
|
||||
cssTarget: ['chrome64', 'firefox67', 'safari11.1', 'edge79'] // CSS兼容目标: ['chrome64', 'firefox67', 'safari11.1', 'edge79'] // CSS兼容目标
|
||||
},
|
||||
optimizeDeps: {
|
||||
// include: ['jquery', 'select2', 'vue3-select2-component'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user