diff --git a/packages/taro-cli/src/presets/platforms/plugin.ts b/packages/taro-cli/src/presets/platforms/plugin.ts index 81be6abf8f20..d3ea0145b145 100644 --- a/packages/taro-cli/src/presets/platforms/plugin.ts +++ b/packages/taro-cli/src/presets/platforms/plugin.ts @@ -52,7 +52,8 @@ export default (ctx: IPluginContext) => { isBuildPlugin: false, isWatch, outputRoot: `${config.outputRoot}/miniprogram`, - platform + platform, + output: { ...(config.output || {}), clean: false } }, options: Object.assign({}, options, { platform