Skip to content

Commit 2b7ab5d

Browse files
fix: better no mode warning message
1 parent 46de110 commit 2b7ab5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/NoModeWarning.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ module.exports = class NoModeWarning extends WebpackError {
1313
this.name = "NoModeWarning";
1414
this.message =
1515
"configuration\n" +
16-
"The 'mode' option has not been set. " +
17-
"Set 'mode' option to 'development' or 'production' to enable defaults for this environment. ";
16+
"The 'mode' option has not been set, webpack will fallback to 'production' for this value. " +
17+
"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/";
1820

1921
Error.captureStackTrace(this, this.constructor);
2022
}

0 commit comments

Comments
 (0)