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.
14 lines
431 B
14 lines
431 B
const logger = require('../logger');
|
|
|
|
/**
|
|
* warn the user if bail and watch both are used together
|
|
* @param {Object} webpack compiler
|
|
* @returns {void}
|
|
*/
|
|
const bailAndWatchWarning = (compiler) => {
|
|
if (compiler.options.bail && compiler.options.watch) {
|
|
logger.warn('You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.');
|
|
}
|
|
};
|
|
|
|
module.exports = bailAndWatchWarning;
|
|
|