Skip to content

Commit

Permalink
Move envify transform declaration to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Jul 21, 2014
1 parent a8df2f0 commit 9343278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
},
"browserify": {
"transform": [
"browserify-shim"
"browserify-shim",
"envify"
]
},
"browserify-shim": {
Expand Down
4 changes: 2 additions & 2 deletions script/build
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
BROWSERIFY="node_modules/.bin/browserify"
VERSION=`node -p "require('./package').version"`

NODE_ENV=production $BROWSERIFY modules/main.js --detect-globals false -t envify > build/react-nested-router-$VERSION.js
NODE_ENV=production $BROWSERIFY modules/main.js --detect-globals false -t envify | uglifyjs --compress warnings=false > build/react-nested-router-$VERSION.min.js
NODE_ENV=production $BROWSERIFY modules/main.js --detect-globals false > build/react-nested-router-$VERSION.js
NODE_ENV=production $BROWSERIFY modules/main.js --detect-globals false | uglifyjs --compress warnings=false > build/react-nested-router-$VERSION.min.js

0 comments on commit 9343278

Please sign in to comment.