This commit is contained in:
thuhole
2020-06-20 14:42:25 +08:00
parent 503ef761a9
commit ea77606c0b
2 changed files with 6 additions and 3 deletions

View File

@@ -17,8 +17,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "echo 'skipped react-scripts test --env=jsdom'",
"predeploy": "npm run build && sed -i 's/\\/\\/cdn\\.jsdelivr\\.net\\/gh\\/thuhole\\/webhole\\@gh\\-pages\\/index\\.html/\\.\\/index\\.html/g' build/*-*",
"predeploy_comments": "额这里用了个骚操作来修复Service Worker在Precache CDN内容的时候index.html返回content-type text/plain的问题",
"predeploy": "",
"deploy": "gh-pages -d build -m $(TZ=Asia/Shanghai date +\"%y%m%d%H%M%S\")",
"eject": "react-scripts eject"
},