From ae2e14baf1771c2ccdeece8bbc2b9bd11b279490 Mon Sep 17 00:00:00 2001 From: Alex Kozack Date: Tue, 12 Jan 2021 10:51:28 +0200 Subject: [PATCH] fix: show target build mode in logs (#1498) --- packages/vite/src/node/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 6417c4eb0dc0bb..f9e04991558b44 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -264,7 +264,7 @@ async function doBuild( inlineConfig: InlineConfig = {} ): Promise { const config = await resolveConfig(inlineConfig, 'build', 'production') - config.logger.info(chalk.cyan(`building for production...`)) + config.logger.info(chalk.cyan(`building for ${config.mode}...`)) const options = config.build const libOptions = options.lib