We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2e1b1e commit cb0bba2Copy full SHA for cb0bba2
2 files changed
.github/workflows/main.yml
@@ -13,8 +13,6 @@ jobs:
13
run: npm install
14
- name: 打包
15
run: npm run build
16
- - name: 複製 index.html 到"/"改名404.html
17
- run: cp dist/index.html dist/404.html
18
- name: 發布分支 Web-Page
19
uses: JamesIves/github-pages-deploy-action@v4
20
with:
package.json
@@ -5,7 +5,7 @@
5
"type": "module",
6
"scripts": {
7
"dev": "vite",
8
- "build": "vite build",
+ "build": "vite build && cp dist/index.html dist/404.html",
9
"preview": "vite preview"
10
},
11
"dependencies": {
0 commit comments