fix(vite.config.ts): 预构建 iconify/vue 报错问题修复

Former-commit-id: 791cf342614a4b8d116996342eaa7cdaddbb44b6
This commit is contained in:
haoxr
2023-03-11 20:48:12 +08:00
parent a135552f27
commit 314789ad09

View File

@@ -47,7 +47,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 线上API地址
target: 'http://vapi.youlai.tech',
// 本地API地址
//target: 'http://localhost:8989',
// target: 'http://localhost:8989',
changeOrigin: true,
rewrite: path =>
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
@@ -63,7 +63,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 自动导入 Vue 相关函数ref, reactive, toRef 等
imports: ['vue', '@vueuse/core'],
eslintrc: {
enabled: true, // true用于生成eslint配置,生成后改回false避免重复生成消耗
enabled: false, // true用于生成eslint配置,生成后改回false避免重复生成消耗
filepath: './.eslintrc-auto-import.json',
globalsPropValue: true
},