From 16a2aedcd0ecf6bdf1bfe52a8935eb31449bef51 Mon Sep 17 00:00:00 2001 From: ariasuni Date: Mon, 9 Feb 2026 03:46:40 +0100 Subject: [PATCH] docs: Small improvements for hooks (#2095) Co-authored-by: Aaron --- docs/guide/essentials/config/hooks.md | 2 ++ docs/guide/essentials/wxt-modules.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guide/essentials/config/hooks.md b/docs/guide/essentials/config/hooks.md index 0e162e89..da5ff072 100644 --- a/docs/guide/essentials/config/hooks.md +++ b/docs/guide/essentials/config/hooks.md @@ -20,6 +20,8 @@ export default defineConfig({ Most hooks provide the `wxt` object as the first argument. It contains the resolved config and other info about the current build. The other arguments can be modified by reference to change different parts of the build system. +You can find the [list of all available hooks](/api/reference/wxt/interfaces/WxtHooks) in the API reference. + Putting one-off hooks like this in your config file is simple, but if you find yourself writing lots of hooks, you should extract them into [WXT Modules](/guide/essentials/wxt-modules) instead. ## Execution Order diff --git a/docs/guide/essentials/wxt-modules.md b/docs/guide/essentials/wxt-modules.md index ac085b91..7a23992d 100644 --- a/docs/guide/essentials/wxt-modules.md +++ b/docs/guide/essentials/wxt-modules.md @@ -66,7 +66,7 @@ Each module's setup function is executed after the `wxt.config.ts` file is loade Refer to the [API reference](/api/reference/wxt/interfaces/Wxt) for a complete list of properties and functions available. -Also to make sure and read about all the [hooks that are available](https://wxt.dev/api/reference/wxt/interfaces/WxtHooks) - they are essential to writing modules. +Also make sure to read about [all the hooks that are available](/api/reference/wxt/interfaces/WxtHooks) - they are essential to writing modules. ### Recipes