升级 @vue/cli5
This commit is contained in:
parent
05568a5fc2
commit
bb66890e66
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "esnext",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["src/*"]
|
||||||
|
},
|
||||||
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"scripthost"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
32
package.json
32
package.json
|
@ -8,11 +8,11 @@
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@element-plus/icons-vue": "1.1.4",
|
"@element-plus/icons-vue": "2.0.0",
|
||||||
"@tinymce/tinymce-vue": "5.0.0",
|
"@tinymce/tinymce-vue": "5.0.0",
|
||||||
"axios": "0.27.2",
|
"axios": "0.27.2",
|
||||||
"codemirror": "5.65.3",
|
"codemirror": "5.65.4",
|
||||||
"core-js": "3.22.5",
|
"core-js": "3.22.7",
|
||||||
"cropperjs": "1.5.12",
|
"cropperjs": "1.5.12",
|
||||||
"crypto-js": "4.1.1",
|
"crypto-js": "4.1.1",
|
||||||
"echarts": "5.3.2",
|
"echarts": "5.3.2",
|
||||||
|
@ -20,8 +20,8 @@
|
||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"qrcodejs2": "0.0.2",
|
"qrcodejs2": "0.0.2",
|
||||||
"sortablejs": "1.15.0",
|
"sortablejs": "1.15.0",
|
||||||
"tinymce": "6.0.2",
|
"tinymce": "6.0.3",
|
||||||
"vue": "3.2.33",
|
"vue": "3.2.36",
|
||||||
"vue-i18n": "9.1.10",
|
"vue-i18n": "9.1.10",
|
||||||
"vue-router": "4.0.15",
|
"vue-router": "4.0.15",
|
||||||
"vuedraggable": "4.0.3",
|
"vuedraggable": "4.0.3",
|
||||||
|
@ -30,13 +30,13 @@
|
||||||
"xgplayer-hls": "2.5.2"
|
"xgplayer-hls": "2.5.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "4.5.15",
|
"@babel/core": "7.18.2",
|
||||||
"@vue/cli-plugin-eslint": "4.5.15",
|
"@babel/eslint-parser": "7.18.2",
|
||||||
"@vue/cli-service": "4.5.15",
|
"@vue/cli-plugin-babel": "5.0.4",
|
||||||
"@vue/compiler-sfc": "3.2.33",
|
"@vue/cli-plugin-eslint": "5.0.4",
|
||||||
"babel-eslint": "10.1.0",
|
"@vue/cli-service": "5.0.4",
|
||||||
"eslint": "6.8.0",
|
"eslint": "8.16.0",
|
||||||
"eslint-plugin-vue": "7.19.1",
|
"eslint-plugin-vue": "9.0.1",
|
||||||
"sass": "1.37.5",
|
"sass": "1.37.5",
|
||||||
"sass-loader": "10.1.1"
|
"sass-loader": "10.1.1"
|
||||||
},
|
},
|
||||||
|
@ -53,18 +53,20 @@
|
||||||
"eslint:recommended"
|
"eslint:recommended"
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"parser": "babel-eslint"
|
"parser": "@babel/eslint-parser"
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"indent": 0,
|
"indent": 0,
|
||||||
"no-tabs": 0,
|
"no-tabs": 0,
|
||||||
"no-mixed-spaces-and-tabs": 0,
|
"no-mixed-spaces-and-tabs": 0,
|
||||||
"vue/no-unused-components": "off"
|
"vue/no-unused-components": 0,
|
||||||
|
"vue/multi-word-component-names": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"> 1%",
|
"> 1%",
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"not dead"
|
"not dead",
|
||||||
|
"not ie 11"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
module.exports = {
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
|
|
||||||
|
module.exports = defineConfig({
|
||||||
//设置为空打包后不分更目录还是多级目录
|
//设置为空打包后不分更目录还是多级目录
|
||||||
publicPath:'',
|
publicPath:'',
|
||||||
//build编译后存放静态文件的目录
|
//build编译后存放静态文件的目录
|
||||||
|
@ -29,16 +31,16 @@ module.exports = {
|
||||||
config.resolve.alias.set('vue-i18n', 'vue-i18n/dist/vue-i18n.cjs.js');
|
config.resolve.alias.set('vue-i18n', 'vue-i18n/dist/vue-i18n.cjs.js');
|
||||||
},
|
},
|
||||||
|
|
||||||
configureWebpack: config => {
|
configureWebpack: {
|
||||||
//性能提示
|
//性能提示
|
||||||
config.performance = {
|
performance: {
|
||||||
hints: false
|
hints: false
|
||||||
}
|
},
|
||||||
config.optimization = {
|
optimization: {
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
chunks: "all",
|
chunks: "all",
|
||||||
automaticNameDelimiter: '~',
|
automaticNameDelimiter: '~',
|
||||||
name: true,
|
name: "scuiChunks",
|
||||||
cacheGroups: {
|
cacheGroups: {
|
||||||
//第三方库抽离
|
//第三方库抽离
|
||||||
vendor: {
|
vendor: {
|
||||||
|
@ -70,5 +72,4 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
})
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue