Skip to content

Commit

Permalink
Support VERBOSE in build as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthachatterjee committed Feb 23, 2021
1 parent f00cd97 commit 7701c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ import {
markWebpackStatusAsPending,
markWebpackStatusAsDone,
} from "../utils/webpack-status"
import { updateSiteMetadata } from "gatsby-core-utils"
import { updateSiteMetadata, isTruthy } from "gatsby-core-utils"

module.exports = async function build(program: IBuildArgs): Promise<void> {
report.setVerbose(program.verbose)
report.setVerbose(isTruthy(process.env.VERBOSE) || program.verbose)

if (program.profile) {
report.warn(
Expand Down

0 comments on commit 7701c9d

Please sign in to comment.