build(pages): 精简pages.config.ts配置

This commit is contained in:
Burt 2024-01-04 09:59:21 +08:00
parent 60af61ab12
commit a1d3cf3442
2 changed files with 0 additions and 29 deletions

View File

@ -8,7 +8,6 @@ export default defineUniPages({
easycom: {
autoscan: true,
custom: {
'^Fly(.*)': '@/components/fly-$1/fly-$1.vue',
'^fly-(.*)': '@/components/fly-$1/fly-$1.vue',
'^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
},
@ -37,32 +36,6 @@ export default defineUniPages({
},
],
},
/**
*
* @default 'pages/index' || 'pages/index/index'
*/
// homePage: 'pages/index/index',
/**
* pages.json pages
* @default true
*/
// mergePages: true,
/**
*
* @default 'src/pages'
*/
// dir: 'src/pages',
/**
*
* @default 'json5' 'json5' | 'json' | 'yaml' | 'yml',
*/
// routeBlockLang: 'json5', // 注意json5允许注释单行多行都可以还有其他很多特性推荐使用
/**
* dir subPackagescomponents里面的文件排除掉
* @default []
*/
exclude: ['**/components/**/*.*'],
// 你也可以定义 pages 字段,它具有最高的优先级。
pages: [],
/**

View File

@ -6,7 +6,6 @@
"easycom": {
"autoscan": true,
"custom": {
"^Fly(.*)": "@/components/fly-$1/fly-$1.vue",
"^fly-(.*)": "@/components/fly-$1/fly-$1.vue",
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
}
@ -35,7 +34,6 @@
}
]
},
"exclude": ["**/components/**/*.*"],
"pages": [
{
"path": "pages/index/index",