unplugin-auto-import:排除自动导入店铺装修组件
(cherry picked from commit 55b477acdb
)
This commit is contained in:
parent
e8ec61a280
commit
914ceff305
@ -59,18 +59,11 @@ export function createVitePlugins() {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
Components({
|
Components({
|
||||||
// 要搜索组件的目录的相对路径
|
|
||||||
dirs: ['src/components'],
|
|
||||||
// 组件的有效文件扩展名
|
|
||||||
extensions: ['vue', 'md'],
|
|
||||||
// 搜索子目录
|
|
||||||
deep: true,
|
|
||||||
include: [/\.vue$/, /\.vue\?vue/],
|
|
||||||
// 生成自定义 `auto-components.d.ts` 全局声明
|
// 生成自定义 `auto-components.d.ts` 全局声明
|
||||||
dts: 'src/types/auto-components.d.ts',
|
dts: 'src/types/auto-components.d.ts',
|
||||||
// 自定义组件的解析器
|
// 自定义组件的解析器
|
||||||
resolvers: [ElementPlusResolver()],
|
resolvers: [ElementPlusResolver()],
|
||||||
exclude: [/[\\/]node_modules[\\/]/]
|
globs: ["src/components/**/**.{vue, md}", '!src/components/DiyEditor/components/mobile/**']
|
||||||
}),
|
}),
|
||||||
EslintPlugin({
|
EslintPlugin({
|
||||||
cache: false,
|
cache: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user