Skip to content

Commit

Permalink
fix(build): use javascript to copy files
Browse files Browse the repository at this point in the history
Using a JavaScript file to do file copying so that we can be environment agnostic
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Mar 9, 2017
1 parent 069402c commit 8632d2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"clean": "rimraf public",
"prebuild": "npm run clean",
"build": "NODE_ENV=production webpack",
"postbuild": "npm run copy-redirects",
"copy-redirects": "[[ -e _redirects ]] && cp _redirects public/_redirects || echo 'no redirects found'"
"postbuild": "npm run cp-redirects",
"cp-redirects": "cpy '_redirects' './public'"
},
"config": {
"ghooks": {
Expand All @@ -37,6 +37,7 @@
"browser-sync": "^2.15.0",
"classnames": "^2.2.5",
"connect-history-api-fallback": "^1.3.0",
"cpy-cli": "^1.0.1",
"css-loader": "^0.22.0",
"debug": "^2.2.0",
"eslint": "^3.4.0",
Expand Down

0 comments on commit 8632d2e

Please sign in to comment.