From fa8517764855ae7565dade88fd6a377619927937 Mon Sep 17 00:00:00 2001 From: Aaron Klinker Date: Sat, 27 Jul 2024 17:04:36 -0500 Subject: [PATCH] docs(modules): Adjust wording --- docs/guide/go-further/reusable-modules.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guide/go-further/reusable-modules.md b/docs/guide/go-further/reusable-modules.md index 90ef1c0a..1c9513c3 100644 --- a/docs/guide/go-further/reusable-modules.md +++ b/docs/guide/go-further/reusable-modules.md @@ -25,12 +25,12 @@ There are two ways to add a module to your project: }); ``` -2. **NPM package**: By convention, any package on NPM that starts with `@wxt-dev/module-*` or `wxt-module-*` can be installed and included in your project: +2. **NPM package**: Find WXT modules on NPM and include them in your project: ```ts // wxt.config.ts export default defineConfig({ // Add the module to your project - modules: ['wxt-module-example'], + modules: ['@wxt-dev/auto-icons'], }); ``` @@ -99,9 +99,9 @@ export default defineConfig({ ### Actually Doing Something -The first argument of the setup function, `wxt`, provides full access to the current build's context. You can access the resolved configuration via `wxt.config`, or setup hooks to manipulate the build at different steps of the build process. +The first argument of the setup function, `wxt`, provides full access to the current build's context. You can access the resolved configuration via `wxt.config`, or setup hooks to manipulate the build at different steps of the build process with `wxt.hooks`. -Here's an example that shows you how to update the `outDir` based on the build mode. It does a good job showing how to access config, set up a hook, and do something when the hook is called. +Here's an example that updates the `outDir` based on the build mode. It's a very simple example of how to access config and setup a hook. ```ts export default defineWxtModule((wxt) => {