diff --git a/packages/taro-cli/src/presets/platforms/weapp.ts b/packages/taro-cli/src/presets/platforms/weapp.ts index 32ead8ac0e1e..cadebee0f9e3 100644 --- a/packages/taro-cli/src/presets/platforms/weapp.ts +++ b/packages/taro-cli/src/presets/platforms/weapp.ts @@ -43,7 +43,7 @@ export default (ctx: IPluginContext) => { // 生成 project.config.json ctx.generateProjectConfig({ - srcConfigName: 'project.config.json', + srcConfigName: config.projectConfigName || 'project.config.json', distConfigName: 'project.config.json' })