We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46de110 commit 2b7ab5dCopy full SHA for 2b7ab5d
lib/NoModeWarning.js
@@ -13,8 +13,10 @@ module.exports = class NoModeWarning extends WebpackError {
13
this.name = "NoModeWarning";
14
this.message =
15
"configuration\n" +
16
- "The 'mode' option has not been set. " +
17
- "Set 'mode' option to 'development' or 'production' to enable defaults for this environment. ";
+ "The 'mode' option has not been set, webpack will fallback to 'production' for this value. " +
+ "Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\n" +
18
+ "You can also set it to 'none' to disable any default behavior. " +
19
+ "Learn more: https://webpack.js.org/concepts/mode/";
20
21
Error.captureStackTrace(this, this.constructor);
22
}
0 commit comments