1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | "use strict";
|
7 |
|
8 | const WebpackError = require("./WebpackError");
|
9 |
|
10 | module.exports = class NoModeWarning extends WebpackError {
|
11 | constructor() {
|
12 | super();
|
13 |
|
14 | this.name = "NoModeWarning";
|
15 | this.message =
|
16 | "configuration\n" +
|
17 | "The 'mode' option has not been set, webpack will fallback to 'production' for this value.\n" +
|
18 | "Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\n" +
|
19 | "You can also set it to 'none' to disable any default behavior. " +
|
20 | "Learn more: https://webpack.js.org/configuration/mode/";
|
21 |
|
22 | Error.captureStackTrace(this, this.constructor);
|
23 | }
|
24 | };
|