webpack/lib/NoModeWarning.js

27 lines
726 B
JavaScript
Raw Normal View History

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
2018-07-30 23:08:51 +08:00
"use strict";
const WebpackError = require("./WebpackError");
2020-11-26 17:52:55 +08:00
module.exports = class NoModeWarning extends (
WebpackError
) {
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. " +
"Learn more: https://webpack.js.org/configuration/mode/";
Error.captureStackTrace(this, this.constructor);
}
};