WarnNoModeSetPlugin.js 391 B

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;