webpack/lib/NoModeWarning.js

22 lines
532 B
JavaScript
Raw Normal View History

/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const WebpackError = require("./WebpackError");
module.exports = class NoModeWarning extends WebpackError {
constructor(modules) {
super();
this.name = "NoModeWarning";
2018-02-25 09:00:20 +08:00
this.message =
"configuration\n" +
"The 'mode' option has not been set. " +
"Set 'mode' option to 'development' or 'production' to enable defaults for this environment. ";
Error.captureStackTrace(this, this.constructor);
}
};