mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-11-29 17:57:37 +08:00
chore: 打包后的代码改为默认原生支持 ES2015
的浏览器
This commit is contained in:
parent
a8b9683a5f
commit
743691ba5d
@ -52,6 +52,8 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
|
||||
exclude
|
||||
},
|
||||
build: {
|
||||
// https://cn.vitejs.dev/guide/build.html#browser-compatibility
|
||||
target: "es2015",
|
||||
sourcemap: false,
|
||||
// 消除打包大小超过500kb警告
|
||||
chunkSizeWarningLimit: 4000,
|
||||
|
Loading…
Reference in New Issue
Block a user