We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90696c5 commit 2408a1eCopy full SHA for 2408a1e
src/module.ts
@@ -189,7 +189,8 @@ export default defineNuxtModule<ModuleOptions>({
189
resolvedCss = createResolver(import.meta.url).resolve('runtime/empty.css')
190
}
191
nuxt.options.css = nuxt.options.css ?? []
192
- const resolvedNuxtCss = await Promise.all(nuxt.options.css.map(p => resolvePath(p)))
+
193
+ const resolvedNuxtCss = await Promise.all(nuxt.options.css.map((p: any) => resolvePath(p.src ?? p)))
194
195
// Inject only if this file isn't listed already by user (e.g. user may put custom path both here and in css):
196
if (!resolvedNuxtCss.includes(resolvedCss)) {
0 commit comments