Skip to content

Commit

Permalink
fix(module): add yml / json extensions to tailwind content files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 6, 2023
1 parent 9efb4e1 commit f9ca7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ export default defineNuxtModule<ModuleOptions>({
// @nuxtjs/tailwindcss support
// @ts-ignore - Module might not exist
nuxt.hook('tailwindcss:config', (tailwindConfig) => {
const contentPath = resolve(nuxt.options.buildDir, 'content-cache', 'parsed/**/*.md')
const contentPath = resolve(nuxt.options.buildDir, 'content-cache', 'parsed/**/*.{md,yml,yaml,json}')
tailwindConfig.content = tailwindConfig.content ?? []

if (Array.isArray(tailwindConfig.content)) {
Expand Down

0 comments on commit f9ca7fe

Please sign in to comment.