Skip to content

Commit 2408a1e

Browse files
mena234atinux
andauthoredNov 3, 2022
fix: css option in object format error. (#557)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
1 parent 90696c5 commit 2408a1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ export default defineNuxtModule<ModuleOptions>({
189189
resolvedCss = createResolver(import.meta.url).resolve('runtime/empty.css')
190190
}
191191
nuxt.options.css = nuxt.options.css ?? []
192-
const resolvedNuxtCss = await Promise.all(nuxt.options.css.map(p => resolvePath(p)))
192+
193+
const resolvedNuxtCss = await Promise.all(nuxt.options.css.map((p: any) => resolvePath(p.src ?? p)))
193194

194195
// Inject only if this file isn't listed already by user (e.g. user may put custom path both here and in css):
195196
if (!resolvedNuxtCss.includes(resolvedCss)) {

0 commit comments

Comments
 (0)
Please sign in to comment.