Skip to content

Commit 69a088c

Browse files
committed
fix: 🐛 getThemeBasePath split logic
1 parent 2a484ce commit 69a088c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite-plugin-drupal/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function getThemeName(): string {
1616
}
1717

1818
export function getThemeBasePath(): string {
19-
return process.cwd().split('/web').at(-1) || `/themes/custom/${getThemeName}`
19+
return `/${process.cwd().split('/web/').at(-1)}` || `/themes/custom/${getThemeName}`
2020
}
2121

2222
export function getDistThemeName(): string {

0 commit comments

Comments
 (0)