build: 📦 升级 vite 版本(6.0.1)
This commit is contained in:
52
package.json
52
package.json
@@ -50,54 +50,54 @@
|
|||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-vue": "5.1.10",
|
"@wangeditor/editor-for-vue": "5.1.10",
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"axios": "^1.7.7",
|
"axios": "^1.7.8",
|
||||||
"codemirror": "^5.65.18",
|
"codemirror": "^5.65.18",
|
||||||
"codemirror-editor-vue3": "^2.8.0",
|
"codemirror-editor-vue3": "^2.8.0",
|
||||||
"echarts": "^5.5.1",
|
"echarts": "^5.5.1",
|
||||||
"element-plus": "^2.8.7",
|
"element-plus": "^2.9.0",
|
||||||
"exceljs": "^4.4.0",
|
"exceljs": "^4.4.0",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"path-to-regexp": "^6.3.0",
|
"path-to-regexp": "^6.3.0",
|
||||||
"pinia": "^2.2.6",
|
"pinia": "^2.2.8",
|
||||||
"qs": "^6.13.0",
|
"qs": "^6.13.1",
|
||||||
"sortablejs": "^1.15.3",
|
"sortablejs": "^1.15.6",
|
||||||
"vue": "^3.5.12",
|
"vue": "^3.5.13",
|
||||||
"vue-i18n": "9.9.1",
|
"vue-i18n": "9.9.1",
|
||||||
"vue-picture-cropper": "^0.7.0",
|
"vue-picture-cropper": "^0.7.0",
|
||||||
"vue-router": "^4.4.5"
|
"vue-router": "^4.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^19.5.0",
|
"@commitlint/cli": "^19.6.0",
|
||||||
"@commitlint/config-conventional": "^19.5.0",
|
"@commitlint/config-conventional": "^19.6.0",
|
||||||
"@eslint/js": "^9.14.0",
|
"@eslint/js": "^9.16.0",
|
||||||
"@types/codemirror": "^5.60.15",
|
"@types/codemirror": "^5.60.15",
|
||||||
"@types/lodash": "^4.17.13",
|
"@types/lodash": "^4.17.13",
|
||||||
"@types/node": "^22.9.0",
|
"@types/node": "^22.10.1",
|
||||||
"@types/nprogress": "^0.2.3",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@types/path-browserify": "^1.0.3",
|
"@types/path-browserify": "^1.0.3",
|
||||||
"@types/qs": "^6.9.17",
|
"@types/qs": "^6.9.17",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.8",
|
||||||
"@typescript-eslint/eslint-plugin": "^8.14.0",
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
||||||
"@typescript-eslint/parser": "^8.14.0",
|
"@typescript-eslint/parser": "^8.16.0",
|
||||||
"@vitejs/plugin-vue": "^5.1.5",
|
"@vitejs/plugin-vue": "^5.2.1",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.20",
|
||||||
"commitizen": "^4.3.1",
|
"commitizen": "^4.3.1",
|
||||||
"cz-git": "1.9.4",
|
"cz-git": "1.9.4",
|
||||||
"eslint": "^9.14.0",
|
"eslint": "^9.16.0",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"eslint-plugin-vue": "^9.31.0",
|
"eslint-plugin-vue": "^9.32.0",
|
||||||
"globals": "^15.12.0",
|
"globals": "^15.13.0",
|
||||||
"husky": "^9.1.6",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^15.2.10",
|
"lint-staged": "^15.2.10",
|
||||||
"postcss": "^8.4.49",
|
"postcss": "^8.4.49",
|
||||||
"postcss-html": "^1.7.0",
|
"postcss-html": "^1.7.0",
|
||||||
"postcss-scss": "^4.0.9",
|
"postcss-scss": "^4.0.9",
|
||||||
"prettier": "^3.3.3",
|
"prettier": "^3.4.1",
|
||||||
"sass": "^1.80.6",
|
"sass": "^1.81.0",
|
||||||
"stylelint": "^16.10.0",
|
"stylelint": "^16.11.0",
|
||||||
"stylelint-config-html": "^1.1.0",
|
"stylelint-config-html": "^1.1.0",
|
||||||
"stylelint-config-recess-order": "^5.1.1",
|
"stylelint-config-recess-order": "^5.1.1",
|
||||||
"stylelint-config-recommended-scss": "^14.1.0",
|
"stylelint-config-recommended-scss": "^14.1.0",
|
||||||
@@ -105,11 +105,11 @@
|
|||||||
"stylelint-config-standard": "^36.0.1",
|
"stylelint-config-standard": "^36.0.1",
|
||||||
"terser": "^5.36.0",
|
"terser": "^5.36.0",
|
||||||
"typescript": "5.5.4",
|
"typescript": "5.5.4",
|
||||||
"typescript-eslint": "^8.14.0",
|
"typescript-eslint": "^8.16.0",
|
||||||
"unocss": "^0.63.6",
|
"unocss": "0.65.0-beta.3",
|
||||||
"unplugin-auto-import": "^0.18.3",
|
"unplugin-auto-import": "^0.18.6",
|
||||||
"unplugin-vue-components": "^0.27.4",
|
"unplugin-vue-components": "^0.27.5",
|
||||||
"vite": "^5.4.11",
|
"vite": "^6.0.1",
|
||||||
"vite-plugin-mock-dev-server": "^1.8.0",
|
"vite-plugin-mock-dev-server": "^1.8.0",
|
||||||
"vite-plugin-svg-icons": "^2.0.1",
|
"vite-plugin-svg-icons": "^2.0.1",
|
||||||
"vue-eslint-parser": "^9.4.3",
|
"vue-eslint-parser": "^9.4.3",
|
||||||
|
|||||||
@@ -10,13 +10,7 @@ import mockDevServerPlugin from "vite-plugin-mock-dev-server";
|
|||||||
|
|
||||||
import UnoCSS from "unocss/vite";
|
import UnoCSS from "unocss/vite";
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
import {
|
import { name, version, engines, dependencies, devDependencies } from "./package.json";
|
||||||
name,
|
|
||||||
version,
|
|
||||||
engines,
|
|
||||||
dependencies,
|
|
||||||
devDependencies,
|
|
||||||
} from "./package.json";
|
|
||||||
|
|
||||||
// 平台的名称、版本、运行所需的 node 版本、依赖、构建时间的类型提示
|
// 平台的名称、版本、运行所需的 node 版本、依赖、构建时间的类型提示
|
||||||
const __APP_INFO__ = {
|
const __APP_INFO__ = {
|
||||||
@@ -38,7 +32,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
// 定义全局 SCSS 变量
|
// 定义全局 SCSS 变量
|
||||||
scss: {
|
scss: {
|
||||||
javascriptEnabled: true,
|
|
||||||
api: "modern-compiler",
|
api: "modern-compiler",
|
||||||
additionalData: `
|
additionalData: `
|
||||||
@use "@/styles/variables.scss" as *;
|
@use "@/styles/variables.scss" as *;
|
||||||
@@ -56,8 +49,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
// 代理目标地址:https://api.youlai.tech
|
// 代理目标地址:https://api.youlai.tech
|
||||||
target: env.VITE_APP_API_URL,
|
target: env.VITE_APP_API_URL,
|
||||||
rewrite: (path) =>
|
rewrite: (path) => path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""),
|
||||||
path.replace(new RegExp("^" + env.VITE_APP_BASE_API), ""),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -216,9 +208,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
const info = assetInfo.name.split(".");
|
const info = assetInfo.name.split(".");
|
||||||
let extType = info[info.length - 1];
|
let extType = info[info.length - 1];
|
||||||
// console.log('文件信息', assetInfo.name)
|
// console.log('文件信息', assetInfo.name)
|
||||||
if (
|
if (/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/i.test(assetInfo.name)) {
|
||||||
/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/i.test(assetInfo.name)
|
|
||||||
) {
|
|
||||||
extType = "media";
|
extType = "media";
|
||||||
} else if (/\.(png|jpe?g|gif|svg)(\?.*)?$/.test(assetInfo.name)) {
|
} else if (/\.(png|jpe?g|gif|svg)(\?.*)?$/.test(assetInfo.name)) {
|
||||||
extType = "img";
|
extType = "img";
|
||||||
|
|||||||
Reference in New Issue
Block a user