Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 16, 2021
1 parent 5e6253d commit 6094d7a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions test/fixtures/reload-config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"use strict";

const webpack = require("webpack");

const isWebpack5 = webpack.version.startsWith("5");

module.exports = {
mode: "development",
context: __dirname,
Expand All @@ -16,8 +20,14 @@ module.exports = {
},
],
},
infrastructureLogging: {
level: "warn",
},
node: false,
infrastructureLogging: isWebpack5
? {
level: "info",
stream: {
write: () => {},
},
}
: {
level: "info",
},
};

0 comments on commit 6094d7a

Please sign in to comment.