Skip to content

Commit

Permalink
chore: fix docs build step
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodingyd committed Jan 2, 2025
1 parent f14e76d commit eac4b73
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,15 @@ export default defineConfig(({ command, mode }) => {
},
}








if (command === 'build') {
if (mode === 'docs') {
return {
...base,
base: '/react-flickity-component/',
root: resolve(__dirname, 'examples'),
build: {
outDir: 'docs',
outDir: '../docs',
emptyOutDir: true,
},
}
} else {
Expand Down

0 comments on commit eac4b73

Please sign in to comment.