You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
720 B

4 years ago
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const WebpackError = require("./WebpackError");
  7. module.exports = class NoModeWarning extends WebpackError {
  8. constructor(modules) {
  9. super();
  10. this.name = "NoModeWarning";
  11. this.message =
  12. "configuration\n" +
  13. "The 'mode' option has not been set, webpack will fallback to 'production' for this value. " +
  14. "Set 'mode' option to 'development' or 'production' to enable defaults for each environment.\n" +
  15. "You can also set it to 'none' to disable any default behavior. " +
  16. "Learn more: https://webpack.js.org/configuration/mode/";
  17. Error.captureStackTrace(this, this.constructor);
  18. }
  19. };