build(prod): edit prod command

prod command would fail without '-f' flag if the `gitako.zip` not exist
This commit is contained in:
EnixCoda 2018-01-12 17:57:30 +08:00
parent a50618e41c
commit 0d74d96261

View file

@ -9,7 +9,7 @@
"scripts": {
"start": "webpack --watch",
"dev": "webpack",
"prod": "NODE_ENV=production webpack && cd dist && rm ./gitako.zip && zip gitako.zip *"
"prod": "NODE_ENV=production webpack && cd dist && rm -f ./gitako.zip && zip gitako.zip *"
},
"dependencies": {
"pjax": "^0.2.4",