Skip to content

Commit ee91213

Browse files
committedAug 17, 2017
make the build command to generate a zip too
1 parent 0b20703 commit ee91213

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node_modules
88

99
# production
1010
/build
11+
build.zip
1112

1213
# misc
1314
.DS_Store

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"server": "node server/index.js",
2828
"start": "react-scripts start",
29-
"build": "react-scripts build",
29+
"build": "react-scripts build && cd build && zip -r ../build.zip *",
3030
"test": "react-scripts test --env=jsdom",
3131
"eject": "react-scripts eject",
3232
"deploy": "react-scripts build && surge -p build -d https://gre-lowrezjam2017.surge.sh"

0 commit comments

Comments
 (0)
Please sign in to comment.