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 5e6253d commit 6094d7aCopy full SHA for 6094d7a
test/fixtures/reload-config/webpack.config.js
@@ -1,5 +1,9 @@
1
"use strict";
2
3
+const webpack = require("webpack");
4
+
5
+const isWebpack5 = webpack.version.startsWith("5");
6
7
module.exports = {
8
mode: "development",
9
context: __dirname,
@@ -16,8 +20,14 @@ module.exports = {
16
20
},
17
21
],
18
22
19
- infrastructureLogging: {
- level: "warn",
- },
- node: false,
23
+ infrastructureLogging: isWebpack5
24
+ ? {
25
+ level: "info",
26
+ stream: {
27
+ write: () => {},
28
+ },
29
+ }
30
+ : {
31
32
33
};
0 commit comments