Skip to content

Commit 52a19b8

Browse files
committed
chore: update nuxt config example
1 parent 9ac9f29 commit 52a19b8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@
2929
yarn add @nuxtjs/html-validator # or npm install @nuxtjs/html-validator
3030
```
3131

32-
2. Add `@nuxtjs/html-validator` to the `buildModules` section of `nuxt.config.js`
32+
2. Add `@nuxtjs/html-validator` to the `modules` section of `nuxt.config.ts`
3333

3434
```js
35-
{
36-
buildModules: [
37-
'@nuxtjs/html-validator',
38-
],
39-
}
35+
export default defineNuxtConfig({
36+
modules: ['@nuxtjs/html-validator'],
37+
})
4038
```
4139

4240
## Development

0 commit comments

Comments
 (0)