From ba399ff4e28c84c40c88bf4f17e3bcbdf9a5717e Mon Sep 17 00:00:00 2001 From: haoxr <1490493387@qq.com> Date: Sun, 12 Mar 2023 22:19:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B3=A8=E9=87=8A=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: c318089cd34ea11370d9e21777f898e4cf1fb250 --- vite.config.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 62730a72..57d72926 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -64,9 +64,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { // 自动导入 Vue 相关函数,如:ref, reactive, toRef 等 imports: ['vue', '@vueuse/core'], eslintrc: { - enabled: false, // true用于生成eslint配置,生成后改回false,避免重复生成消耗 - filepath: './.eslintrc-auto-import.json', - globalsPropValue: true + enabled: false, // Default `false` + filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` + globalsPropValue: true // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, resolvers: [ // 自动导入 Element Plus 相关函数,如:ElMessage, ElMessageBox... (带样式) @@ -76,10 +76,8 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { prefix: 'Icon' }) ], - - // 是否在vue模板中自动导入 - vueTemplate: true, - dts: path.resolve(pathSrc, 'types', 'auto-imports.d.ts') // 配置文件生成位置,默认是根目录 /auto-imports.d.ts + vueTemplate: true, // 是否在 vue 模板中自动导入 + dts: path.resolve(pathSrc, 'types', 'auto-imports.d.ts') // (false) 配置文件生成位置,默认是根目录 /auto-imports.d.ts }), Components({ @@ -91,7 +89,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { // 自动导入 Element Plus 组件 ElementPlusResolver() ], - dts: path.resolve(pathSrc, 'types', 'components.d.ts') // 配置文件生成位置,默认是根目录 /components.d.ts + dts: path.resolve(pathSrc, 'types', 'components.d.ts') // (false) 配置文件生成位置,默认是根目录 /components.d.ts }), Icons({