chore(mp): 配置优化 + 文档更新
- config: virtualHost + native-components 拷贝配置 - project.config: skylineRenderEnable=false 调试用 - app.config: 移除 lazyCodeLoading 注释(已在 config/index.ts 控制) - dev.ps1: WECHAT_DEV_MODE=false(真机测试用) - wiki: 更新 DevTools 卡死根因 + 构建模式说明 - CLAUDE.md: 添加 graphify 知识图谱规则
This commit is contained in:
@@ -44,6 +44,13 @@ export default defineConfig(async (merge) => {
|
||||
resource: ['src/styles/variables.scss'],
|
||||
},
|
||||
mini: {
|
||||
virtualHost: true,
|
||||
copy: {
|
||||
patterns: [
|
||||
{ from: 'src/native-components/', to: 'dist/native-components/', ignore: ['*.ts'] },
|
||||
],
|
||||
options: {},
|
||||
},
|
||||
compile: {
|
||||
exclude: [],
|
||||
include: [],
|
||||
|
||||
@@ -14,7 +14,8 @@
|
||||
"minifyWXML": true,
|
||||
"packNpmManually": false,
|
||||
"packNpmRelationList": [],
|
||||
"ignoreUploadUnusedFiles": true
|
||||
"ignoreUploadUnusedFiles": true,
|
||||
"skylineRenderEnable": false
|
||||
},
|
||||
"condition": {}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
export default defineAppConfig({
|
||||
// 仅生产构建启用,dev 模式下 lazyCodeLoading 导致 DevTools / 真机调试卡死
|
||||
...(process.env.NODE_ENV === 'production' ? { lazyCodeLoading: 'requiredComponents' as const } : {}),
|
||||
pages: [
|
||||
'pages/index/index',
|
||||
|
||||
Reference in New Issue
Block a user