Skip to content

Commit

Permalink
chore: suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Anshuman Verma <anshu.av97@gmail.com>
  • Loading branch information
snitin315 and anshumanv committed Nov 9, 2020
1 parent abeff02 commit 27e976c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/bootstrap.js
Expand Up @@ -25,7 +25,7 @@ const runCLI = async (cliArgs) => {
let entry;

// enable/disable colors
if (typeof parsedArgs.opts.color !== 'undefined') {
if (parsedArgs.opts.hasOwnProperty('color')) {
coloretteOptions.enabled = Boolean(parsedArgs.opts.color);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -369,7 +369,7 @@ class WebpackCLI {

let colors;
// From flags
if (typeof args.color !== 'undefined') {
if (args.hasOwnProperty('color')) {
colors = args.color;
}
// From stats
Expand Down

0 comments on commit 27e976c

Please sign in to comment.