Skip to content

Commit 397d3db

Browse files
author
River@devbox
committed
Update build script
1 parent 57463a7 commit 397d3db

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "tsc && vite build",
8+
"build": "cp docs/CNAME /tmp/qpy-CNAME && cp docs/courses-cn.html /tmp/qpy-courses-cn.html && cp docs/courses.html /tmp/qpy-courses.html && cp -r docs/static /tmp/qpy-static && tsc && vite build && cp /tmp/qpy-CNAME docs/CNAME && cp /tmp/qpy-courses-cn.html docs/courses-cn.html && cp /tmp/qpy-courses.html docs/courses.html && cp -r /tmp/qpy-static docs/static",
99
"preview": "vite preview"
1010
},
1111
"dependencies": {

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ export default defineConfig({
99
'@': path.resolve(__dirname, './src'),
1010
},
1111
},
12+
build: {
13+
outDir: 'docs',
14+
},
1215
})

0 commit comments

Comments
 (0)