fix:修改node版本过高的bug

This commit is contained in:
zty 2024-06-05 16:37:57 +08:00
parent f392d49292
commit e8a6e17c70
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@
"html2canvas": "^1.4.1", "html2canvas": "^1.4.1",
"json-editor-vue3": "^1.0.6", "json-editor-vue3": "^1.0.6",
"jspdf": "^2.5.1", "jspdf": "^2.5.1",
"node-polyfill-webpack-plugin": "^4.0.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"print-js": "^1.6.0", "print-js": "^1.6.0",
"qrcodejs2": "0.0.2", "qrcodejs2": "0.0.2",

View File

@ -1,5 +1,5 @@
const { defineConfig } = require('@vue/cli-service') const { defineConfig } = require('@vue/cli-service')
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = defineConfig({ module.exports = defineConfig({
//设置为空打包后不分更目录还是多级目录 //设置为空打包后不分更目录还是多级目录
publicPath:'', publicPath:'',
@ -85,6 +85,7 @@ module.exports = defineConfig({
stream: false, stream: false,
} }
}, },
plugins: [new NodePolyfillPlugin()],
externals:{ externals:{
'./cptable':'var cptable' './cptable':'var cptable'
} }