NoModeWarning.js 720 B

1234567891011121314151617181920212223
  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. };