diff --git a/packages/taro-cli/src/cli.ts b/packages/taro-cli/src/cli.ts index 8fde5fc76e30..62432ebc620d 100644 --- a/packages/taro-cli/src/cli.ts +++ b/packages/taro-cli/src/cli.ts @@ -44,6 +44,7 @@ export default class CLI { // 设置环境变量 process.env.NODE_ENV ||= args.env || (args.watch ? 'development' : 'production') + process.env.TARO_ENV = args.type const kernel = new Kernel({ appPath,