Skip to content

Commit a631052

Browse files
authored
docs: add explanations for emit and done plugin hooks (#8089)
1 parent b06621c commit a631052

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/content/contribute/writing-a-plugin.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Plugins are instantiated objects with an `apply` method on their prototype. This
6262
```js
6363
class HelloWorldPlugin {
6464
apply(compiler) {
65+
// This hook runs when the build process is fully completed
6566
compiler.hooks.done.tap(
6667
"Hello World Plugin",
6768
(

0 commit comments

Comments
 (0)