diff --git a/vite.config.js b/vite.config.js index 408a95e..100d99e 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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 {