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

Method apply

lib/EntryOptionPlugin.js:46–51  ·  view source on GitHub ↗

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

(compiler)

Source from the content-addressed store, hash-verified

44 * @returns {void}
45 */
46 apply(compiler) {
47 compiler.hooks.entryOption.tap(PLUGIN_NAME, (context, entry) => {
48 EntryOptionPlugin.applyEntryOption(compiler, context, entry);
49 return true;
50 });
51 }
52
53 /**
54 * Apply entry option.

Callers

nothing calls this directly

Calls 2

tapMethod · 0.80
applyEntryOptionMethod · 0.80

Tested by

no test coverage detected