1 |
|
2 |
|
3 |
|
4 |
|
5 | "use strict";
|
6 |
|
7 | const WebpackError = require("./WebpackError");
|
8 |
|
9 | module.exports = class NoModeWarning extends WebpackError {
|
10 | constructor(modules) {
|
11 | super();
|
12 |
|
13 | this.name = "NoModeWarning";
|
14 | this.message =
|
15 | "configuration\n" +
|
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/configuration/mode/";
|
20 |
|
21 | Error.captureStackTrace(this, this.constructor);
|
22 | }
|
23 | };
|