Skip to content

Commit

Permalink
Issue #386 [Enhancement][WIP] Add gulp demo --tracer option to enable…
Browse files Browse the repository at this point in the history
… tracing only if the option is set
  • Loading branch information
t2ym committed Oct 9, 2020
1 parent 292ee44 commit e8fb18f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo-config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,6 @@ class TargetConfig extends Traceable(Configurable(GulpDefaultRegistry, 'thin-hoo
}
}

const targetConfig = new TargetConfig().setTracer();
const targetConfig = ((config) => process.argv.indexOf('--tracer') >= 0 ? config.setTracer() : config)(new TargetConfig());

module.exports = targetConfig;

0 comments on commit e8fb18f

Please sign in to comment.