We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c43b93b commit 685df00Copy full SHA for 685df00
packages/webpack-cli/lib/utils/warnings/bailAndWatchWarning.js
@@ -1,7 +1,14 @@
1
const logger = require('../logger');
2
3
-module.exports = (compiler) => {
+/**
4
+ * warn the user if bail and watch both are used together
5
+ * @param {Object} webpack compiler
6
+ * @returns {void}
7
+ */
8
+const bailAndWatchWarning = (compiler) => {
9
if (compiler.options.bail && compiler.options.watch) {
10
logger.warn('You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.');
11
}
12
};
13
+
14
+module.exports = bailAndWatchWarning;
0 commit comments