MCPcopy
hub / github.com/webpack/webpack / apply

Method apply

lib/WarnNoModeSetPlugin.js:36–40  ·  lib/WarnNoModeSetPlugin.js::WarnNoModeSetPlugin.apply

* Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler instance * @returns {void}

(compiler)

Source from the content-addressed store, hash-verified

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
43module.exports = WarnNoModeSetPlugin;

Callers

nothing calls this directly

Calls 2

tapMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected