2017-11-21 17:41:01 +08:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
2018-07-30 23:08:51 +08:00
|
|
|
|
2017-11-21 17:41:01 +08:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const WebpackError = require("./WebpackError");
|
|
|
|
|
2020-11-26 17:52:55 +08:00
|
|
|
module.exports = class NoModeWarning extends (
|
|
|
|
WebpackError
|
|
|
|
) {
|
2017-11-21 17:41:01 +08:00
|
|
|
constructor(modules) {
|
|
|
|
super();
|
|
|
|
|
|
|
|
this.name = "NoModeWarning";
|
2018-02-25 09:00:20 +08:00
|
|
|
this.message =
|
|
|
|
"configuration\n" +
|
2018-03-28 21:05:15 +08:00
|
|
|
"The 'mode' option has not been set, webpack will fallback to 'production' for this value. " +
|
2018-03-28 21:08:00 +08:00
|
|
|
"Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\n" +
|
|
|
|
"You can also set it to 'none' to disable any default behavior. " +
|
2019-04-01 15:56:00 +08:00
|
|
|
"Learn more: https://webpack.js.org/configuration/mode/";
|
2017-11-21 17:41:01 +08:00
|
|
|
|
|
|
|
Error.captureStackTrace(this, this.constructor);
|
|
|
|
}
|
|
|
|
};
|