Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55b477ac
authored
Nov 09, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unplugin-auto-import:排除自动导入店铺装修组件
parent
6160c2fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
build/vite/index.ts
+1
-8
No files found.
build/vite/index.ts
View file @
55b477ac
...
@@ -60,18 +60,11 @@ export function createVitePlugins() {
...
@@ -60,18 +60,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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment