update 升级 vite8

update 升级 ts6
update eslint 替换为 Oxlint
This commit is contained in:
疯狂的狮子Li
2026-04-01 16:15:03 +08:00
parent 57f18eece5
commit 6c395bb65b
11 changed files with 44 additions and 436 deletions
+1 -21
View File
@@ -1,7 +1,6 @@
import { defineConfig, loadEnv } from 'vite';
import createPlugins from './vite/plugins';
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
import path from 'path';
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd());
@@ -11,9 +10,7 @@ export default defineConfig(({ mode, command }) => {
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
base: env.VITE_APP_CONTEXT_PATH,
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
},
tsconfigPaths: true,
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
},
// https://cn.vitejs.dev/config/#resolve-extensions
@@ -52,23 +49,6 @@ export default defineConfig(({ mode, command }) => {
}
]
}
},
// 预编译
optimizeDeps: {
entries: ['src/**/*.vue'],
include: [
'vue',
'vue-router',
'pinia',
'axios',
'@vueuse/core',
'echarts',
'vue-i18n',
'@wangeditor-next/editor',
'@wangeditor-next/editor-for-vue',
'image-conversion',
'element-plus/es/components/**/style/css'
]
}
};
});