Skip to content

Commit

Permalink
docs: important order of modules
Browse files Browse the repository at this point in the history
  • Loading branch information
vernaillen committed Aug 19, 2024
1 parent e4020ec commit e470216
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/2.getting-started/1.index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@ description:

## add @wpnuxt/blocks to your Nuxt app

Install the module to your Nuxt application with one command:
You can install the module to your Nuxt application with one command:

```bash
npx nuxi module add @wpnuxt/blocks
```

However, this will add the module as last module in the list of modules, so you will have to move it above the @wpnuxt/core module to be able to make sure the blocks can be loaded.

```ts
export default defineNuxtConfig({
modules: [
'@wpnuxt/blocks', // add this module above @wpnuxt/core
'@wpnuxt/core'
],
})
```

0 comments on commit e470216

Please sign in to comment.