UNPKG

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