Skip to content

Commit c10c4c4

Browse files
committed
feat: 添加 deploy:local 脚本以便本地部署到 GitHub Pages
1 parent 341431d commit c10c4c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"test": "react-scripts test",
2222
"eject": "react-scripts eject",
2323
"predeploy": "npm run build",
24-
"deploy": "gh-pages -d build"
24+
"deploy": "gh-pages -d build",
25+
"deploy:local": "npm run build && gh-pages -d build"
2526
},
2627
"eslintConfig": {
2728
"extends": [

0 commit comments

Comments
 (0)