-
-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -507,6 +507,7 @@ export default defineNuxtModule<ModuleOptions>({ | |
nitroConfig.bundledStorage = nitroConfig.bundledStorage || [] | ||
nitroConfig.bundledStorage.push('/cache/content') | ||
|
||
// @ts-ignore | ||
Check failure on line 510 in src/module.ts
|
||
nitroConfig.externals = defu(typeof nitroConfig.externals === 'object' ? nitroConfig.externals : {}, { | ||
inline: [ | ||
// Inline module runtime in Nitro bundle | ||
|
@@ -759,6 +760,7 @@ export default defineNuxtModule<ModuleOptions>({ | |
]) | ||
} | ||
|
||
// @ts-ignore | ||
Check failure on line 763 in src/module.ts
|
||
await nuxt.callHook('content:context', contentContext) | ||
|
||
contentContext.defaultLocale = contentContext.defaultLocale || contentContext.locales[0] | ||
|
@@ -844,7 +846,7 @@ export default defineNuxtModule<ModuleOptions>({ | |
}) | ||
|
||
// @nuxtjs/tailwindcss support | ||
// @ts-expect-error - Module might not exist | ||
// @ts-ignore - Module might not exist | ||
Check failure on line 849 in src/module.ts
|
||
nuxt.hook('tailwindcss:config', async (tailwindConfig) => { | ||
const contentPath = resolve(nuxt.options.buildDir, 'content-cache', 'parsed/**/*.{md,yml,yaml,json}') | ||
tailwindConfig.content = tailwindConfig.content ?? [] | ||
|
@@ -856,7 +858,7 @@ export default defineNuxtModule<ModuleOptions>({ | |
tailwindConfig.content.files.push(contentPath) | ||
} | ||
|
||
// @ts-expect-error | ||
// @ts-ignore | ||
Check failure on line 861 in src/module.ts
|
||
const [tailwindCssPath] = Array.isArray(nuxt.options.tailwindcss?.cssPath) ? nuxt.options.tailwindcss.cssPath : [nuxt.options.tailwindcss?.cssPath] | ||
let cssPath = tailwindCssPath ? await resolvePath(tailwindCssPath, { extensions: ['.css', '.sass', '.scss', '.less', '.styl'] }) : join(nuxt.options.dir.assets, 'css/tailwind.css') | ||
if (!fs.existsSync(cssPath)) { | ||
|