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

Method apply

test/serve/serve-variable/webpack.config.js:8–16  ·  view source on GitHub ↗
(compiler)

Source from the content-addressed store, hash-verified

6 }
7
8 apply(compiler) {
9 compiler.hooks.done.tap("testPlugin", () => {
10 if (this.isInEnvironment) {
11 console.log("PASS");
12 } else {
13 console.log("FAIL");
14 }
15 });
16 }
17}
18
19module.exports = (env) => ({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected