Skip to content

Commit

Permalink
feat: add content wind version in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Nov 3, 2022
1 parent 0eea248 commit c5af5e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { version } from './package.json'
import { logger } from '@nuxt/kit'

// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
export default defineNuxtConfig({
modules: [
Expand All @@ -18,5 +21,10 @@ export default defineNuxtConfig({
// See the available themes on https://github.com/shikijs/shiki/blob/main/docs/themes.md#all-theme
theme: 'dracula'
}
},
hooks: {
'modules:before'() {
logger.success(`Using Content Wind v${version}`)
}
}
})

1 comment on commit c5af5e0

@vercel
Copy link

@vercel vercel bot commented on c5af5e0 Nov 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.