fix(vite.config.ts): 预构建 iconify/vue 报错问题修复
Former-commit-id: 40c50cf392644e8ffb2af3a819c798df715f4f76
This commit is contained in:
@@ -47,7 +47,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
// 线上API地址
|
// 线上API地址
|
||||||
target: 'http://vapi.youlai.tech',
|
target: 'http://vapi.youlai.tech',
|
||||||
// 本地API地址
|
// 本地API地址
|
||||||
// target: 'http://localhost:8989',
|
//target: 'http://localhost:8989',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: path =>
|
rewrite: path =>
|
||||||
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
||||||
@@ -63,7 +63,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
// 自动导入 Vue 相关函数,如:ref, reactive, toRef 等
|
// 自动导入 Vue 相关函数,如:ref, reactive, toRef 等
|
||||||
imports: ['vue', '@vueuse/core'],
|
imports: ['vue', '@vueuse/core'],
|
||||||
eslintrc: {
|
eslintrc: {
|
||||||
enabled: false, // true用于生成eslint配置,生成后改回false,避免重复生成消耗
|
enabled: true, // true用于生成eslint配置,生成后改回false,避免重复生成消耗
|
||||||
filepath: './.eslintrc-auto-import.json',
|
filepath: './.eslintrc-auto-import.json',
|
||||||
globalsPropValue: true
|
globalsPropValue: true
|
||||||
},
|
},
|
||||||
@@ -113,7 +113,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
'element-plus/es/locale/lang/en',
|
'element-plus/es/locale/lang/en',
|
||||||
'pinia',
|
'pinia',
|
||||||
'@vueuse/core',
|
'@vueuse/core',
|
||||||
'@iconify/vue',
|
|
||||||
'axios',
|
'axios',
|
||||||
'echarts',
|
'echarts',
|
||||||
'@wangeditor/editor',
|
'@wangeditor/editor',
|
||||||
|
|||||||
Reference in New Issue
Block a user