NoModeWarning.js 663 B

12345678910111213141516171819202122
  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() {
  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.\n" +
  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. }
  18. };