Skip to content

Commit 83f0082

Browse files
committed
set vite build dir
1 parent 8639d7c commit 83f0082

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vite.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default {
66
// vite app is loaded from /src
77
root: path.join(__dirname, "src"),
88

9+
// build to /dist instead of /src/dist
10+
build: {
11+
outDir: '../dist',
12+
emptyOutDir: true,
13+
},
14+
915
// add plugins
1016
plugins: [
1117
vue(),

0 commit comments

Comments
 (0)