Skip to content

Commit 134aa79

Browse files
authored
fix(astro): respect Astro's srcDir config (unocss#2326)
1 parent 0e8dcbb commit 134aa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function UnoCSSAstroIntegration<Theme extends {}>(
4343
// Adding components to UnoCSS's extra content
4444
options.extraContent ||= {}
4545
options.extraContent.filesystem ||= []
46-
options.extraContent.filesystem.push(resolve(fileURLToPath(config.root), 'src/components/**/*').replace(/\\/g, '/'))
46+
options.extraContent.filesystem.push(resolve(fileURLToPath(config.srcDir), 'components/**/*').replace(/\\/g, '/'))
4747

4848
config.vite.plugins ||= []
4949
config.vite.plugins.push(...VitePlugin(options, defaults) as any)

0 commit comments

Comments
 (0)