* Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler instance * @returns {void}
(compiler)
| 34 | * @returns {void} |
| 35 | */ |
| 36 | apply(compiler) { |
| 37 | compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => { |
| 38 | compilation.warnings.push(new NoModeWarning()); |
| 39 | }); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | module.exports = WarnNoModeSetPlugin; |