Skip to content

Commit eac4b73

Browse files
committed
chore: fix docs build step
1 parent f14e76d commit eac4b73

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

vite.config.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,15 @@ export default defineConfig(({ command, mode }) => {
1717
},
1818
}
1919

20-
21-
22-
23-
24-
25-
26-
2720
if (command === 'build') {
2821
if (mode === 'docs') {
2922
return {
3023
...base,
3124
base: '/react-flickity-component/',
25+
root: resolve(__dirname, 'examples'),
3226
build: {
33-
outDir: 'docs',
27+
outDir: '../docs',
28+
emptyOutDir: true,
3429
},
3530
}
3631
} else {

0 commit comments

Comments
 (0)