We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a04d649 commit d277ab0Copy full SHA for d277ab0
src/BundleAnalyzerPlugin.js
@@ -34,6 +34,10 @@ class BundleAnalyzerPlugin {
34
apply(compiler) {
35
this.compiler = compiler;
36
37
+ // Respect default logging level from webpack
38
+ const defaultLoggerLevel = compiler.options.infrastructureLogging && compiler.options.infrastructureLogging.level ? compiler.options.infrastructureLogging.level : this.opts.logLevel;
39
+ this.logger = compiler.getInfrastructureLogger ? compiler.getInfrastructureLogger('webpack-bundle-analyzer') : new Logger(defaultLoggerLevel);
40
+
41
const done = (stats, callback) => {
42
callback = callback || (() => {});
43
0 commit comments