build: 写成 easycom 规范可以不用显式custom 规则

This commit is contained in:
菲鸽 2024-04-20 11:08:54 +08:00
parent 7e3ab3ca19
commit ffc37d9030
3 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ export default defineUniPages({
easycom: { easycom: {
autoscan: true, autoscan: true,
custom: { custom: {
'^fg-(.*)': '@/components/fg-$1.vue', // '^fg-(.*)': '@/components/fg-$1.vue',
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue', '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
}, },
}, },

View File

@ -9,7 +9,6 @@
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^fg-(.*)": "@/components/fg-$1.vue",
"^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue"
} }
}, },