这两个配置文件是可以运行的

This commit is contained in:
tiezx 2025-07-17 17:26:22 +08:00
parent d64ced16a3
commit 4387572eaa
2 changed files with 20 additions and 18 deletions

View File

@ -15,12 +15,6 @@
"path": "node_modules/cz-git" "path": "node_modules/cz-git"
} }
}, },
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"keywords": [ "keywords": [
"vue", "vue",
"admin", "admin",
@ -37,8 +31,7 @@
"dependencies": { "dependencies": {
"@babel/parser": "7.7.4", "@babel/parser": "7.7.4",
"@riophae/vue-treeselect": "0.4.0", "@riophae/vue-treeselect": "0.4.0",
"axios": "^1.10.0", "axios": "0.24.0",
"bpmn-js-token-simulation": "0.10.0",
"clipboard": "2.0.8", "clipboard": "2.0.8",
"core-js": "3.25.3", "core-js": "3.25.3",
"echarts": "5.4.0", "echarts": "5.4.0",
@ -60,14 +53,15 @@
"vue-router": "3.4.9", "vue-router": "3.4.9",
"vuedraggable": "2.24.3", "vuedraggable": "2.24.3",
"vuex": "3.6.0", "vuex": "3.6.0",
"xml-js": "1.6.11" "xml-js": "1.6.11",
"bpmn-js-token-simulation": "0.10.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^19.7.1", "@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1", "@commitlint/config-conventional": "^19.7.1",
"@vue/cli-plugin-babel": "^5.0.8", "@vue/cli-plugin-babel": "4.4.6",
"@vue/cli-plugin-eslint": "^5.0.8", "@vue/cli-plugin-eslint": "4.4.6",
"@vue/cli-service": "^5.0.8", "@vue/cli-service": "4.4.6",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-plugin-dynamic-import-node": "2.3.3", "babel-plugin-dynamic-import-node": "2.3.3",
"bpmn-js": "7.5.0", "bpmn-js": "7.5.0",

View File

@ -42,7 +42,12 @@ module.exports = {
} }
} }
}, },
disableHostCheck: true //disableHostCheck: true
historyApiFallback: true,
allowedHosts: [
'localhost',
'127.0.0.1'
]
}, },
css: { css: {
loaderOptions: { loaderOptions: {
@ -53,11 +58,14 @@ module.exports = {
}, },
configureWebpack: { configureWebpack: {
name: name, name: name,
resolve: { // resolve: {
alias: { // fallback: {
'@': resolve('src') // path: require.resolve('path-browserify')
} // },
}, // alias: {
// '@': resolve('src')
// }
// },
plugins: [ plugins: [
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
new CompressionPlugin({ new CompressionPlugin({