chore: window.process定义在index.html中,防止低版本浏览器报错

This commit is contained in:
xiaoxian521
2022-08-24 09:46:19 +08:00
parent 769410efdf
commit cef79dfca0
2 changed files with 3 additions and 2 deletions

View File

@@ -70,8 +70,6 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
chunkSizeWarningLimit: 4000
},
define: {
"process.platform": null,
"process.version": null,
__INTLIFY_PROD_DEVTOOLS__: false,
__APP_INFO__: JSON.stringify(__APP_INFO__)
}