MCPcopy Create free account
hub / github.com/webpack/webpack-cli / apply

Function apply

test/watch/stats/webpack.config.js:9–16  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

7 plugins: [
8 {
9 apply(compiler) {
10 (compiler.webpack ? compiler.hooks.afterDone : compiler.hooks.done).tap(
11 "webpack-cli-test",
12 () => {
13 console.log(`webpack ${webpack.version}`);
14 },
15 );
16 },
17 },
18 ],
19};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected