diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 00000000..654309ec --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "esnext", + "baseUrl": "./", + "moduleResolution": "node", + "paths": { + "@/*": ["src/*"] + }, + "lib": [ + "esnext", + "dom", + "dom.iterable", + "scripthost" + ] + } +} diff --git a/package.json b/package.json index 373f118f..4945275b 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "lint": "vue-cli-service lint" }, "dependencies": { - "@element-plus/icons-vue": "1.1.4", + "@element-plus/icons-vue": "2.0.0", "@tinymce/tinymce-vue": "5.0.0", "axios": "0.27.2", - "codemirror": "5.65.3", - "core-js": "3.22.5", + "codemirror": "5.65.4", + "core-js": "3.22.7", "cropperjs": "1.5.12", "crypto-js": "4.1.1", "echarts": "5.3.2", @@ -20,8 +20,8 @@ "nprogress": "0.2.0", "qrcodejs2": "0.0.2", "sortablejs": "1.15.0", - "tinymce": "6.0.2", - "vue": "3.2.33", + "tinymce": "6.0.3", + "vue": "3.2.36", "vue-i18n": "9.1.10", "vue-router": "4.0.15", "vuedraggable": "4.0.3", @@ -30,13 +30,13 @@ "xgplayer-hls": "2.5.2" }, "devDependencies": { - "@vue/cli-plugin-babel": "4.5.15", - "@vue/cli-plugin-eslint": "4.5.15", - "@vue/cli-service": "4.5.15", - "@vue/compiler-sfc": "3.2.33", - "babel-eslint": "10.1.0", - "eslint": "6.8.0", - "eslint-plugin-vue": "7.19.1", + "@babel/core": "7.18.2", + "@babel/eslint-parser": "7.18.2", + "@vue/cli-plugin-babel": "5.0.4", + "@vue/cli-plugin-eslint": "5.0.4", + "@vue/cli-service": "5.0.4", + "eslint": "8.16.0", + "eslint-plugin-vue": "9.0.1", "sass": "1.37.5", "sass-loader": "10.1.1" }, @@ -53,18 +53,20 @@ "eslint:recommended" ], "parserOptions": { - "parser": "babel-eslint" + "parser": "@babel/eslint-parser" }, "rules": { "indent": 0, "no-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": [ "> 1%", "last 2 versions", - "not dead" + "not dead", + "not ie 11" ] } diff --git a/vue.config.js b/vue.config.js index 633fbea0..47bd8d4a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,6 @@ -module.exports = { +const { defineConfig } = require('@vue/cli-service') + +module.exports = defineConfig({ //设置为空打包后不分更目录还是多级目录 publicPath:'', //build编译后存放静态文件的目录 @@ -29,16 +31,16 @@ module.exports = { config.resolve.alias.set('vue-i18n', 'vue-i18n/dist/vue-i18n.cjs.js'); }, - configureWebpack: config => { + configureWebpack: { //性能提示 - config.performance = { + performance: { hints: false - } - config.optimization = { + }, + optimization: { splitChunks: { chunks: "all", automaticNameDelimiter: '~', - name: true, + name: "scuiChunks", cacheGroups: { //第三方库抽离 vendor: { @@ -70,5 +72,4 @@ module.exports = { } } } - -} +})