Skip to content

Commit

Permalink
fix: show target build mode in logs (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 committed Jan 12, 2021
1 parent b5e591d commit ae2e14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async function doBuild(
inlineConfig: InlineConfig = {}
): Promise<RollupOutput | RollupOutput[]> {
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
Expand Down

0 comments on commit ae2e14b

Please sign in to comment.