Skip to content

Commit cb0bba2

Browse files
committed
修改:github actions複製index.html改404.html 交由package build
1 parent c2e1b1e commit cb0bba2

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
run: npm install
1414
- name: 打包
1515
run: npm run build
16-
- name: 複製 index.html 到"/"改名404.html
17-
run: cp dist/index.html dist/404.html
1816
- name: 發布分支 Web-Page
1917
uses: JamesIves/github-pages-deploy-action@v4
2018
with:

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": "vite build",
8+
"build": "vite build && cp dist/index.html dist/404.html",
99
"preview": "vite preview"
1010
},
1111
"dependencies": {

0 commit comments

Comments
 (0)