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.

WarnNoModeSetPlugin.js 391B

1234567891011121314151617
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const NoModeWarning = require("./NoModeWarning");
  7. class WarnNoModeSetPlugin {
  8. apply(compiler) {
  9. compiler.hooks.thisCompilation.tap("WarnNoModeSetPlugin", compilation => {
  10. compilation.warnings.push(new NoModeWarning());
  11. });
  12. }
  13. }
  14. module.exports = WarnNoModeSetPlugin;