docs: minor nuxt module doc change (#2962)

This commit is contained in:
Vinil Vasani 2022-01-28 03:29:48 +05:30 committed by GitHub
parent 7db7fddc80
commit 558be39875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ Starting with Nuxt 3, modules can benefit all [Nuxt Kit](/docs/advanced/kit) uti
// modules/module.mjs // modules/module.mjs
export default async (inlineOptions, nuxt) => { export default async (inlineOptions, nuxt) => {
// You can do whatever you like here.. // You can do whatever you like here..
console.log(moduleOptions.token) // `123` console.log(inlineOptions.token) // `123`
console.log(nuxt.options.dev) // `true` or `false` console.log(nuxt.options.dev) // `true` or `false`
nuxt.hook('ready', async nuxt => { nuxt.hook('ready', async nuxt => {
console.log('Nuxt is ready') console.log('Nuxt is ready')