Skip to content

Commit 52fd257

Browse files
author
Sandi Karajic
committed
set proper prefix
1 parent b224695 commit 52fd257

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

vite.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import tsconfigPaths from 'vite-tsconfig-paths';
66
import tailwindcss from "@tailwindcss/vite";
77
import path from 'path';
88

9-
export default defineConfig({
9+
export default defineConfig(({ command }) => ({
10+
base: command === 'build' ? '/.theme/' : '/',
1011
plugins: [
1112
tsconfigPaths(),
1213
preact({
@@ -46,4 +47,4 @@ export default defineConfig({
4647
]
4748
}
4849
}
49-
});
50+
}));

0 commit comments

Comments
 (0)