Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3644 from chenba/3643-node_env-no_uglify-env-dev
Browse files Browse the repository at this point in the history
Export NODE_ENV and NO_UGLIFY for make. (#3643)
  • Loading branch information
ianb committed Oct 16, 2017
2 parents 85236d1 + 4835366 commit 2642c89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .env.dev
Expand Up @@ -14,3 +14,6 @@ LOCALHOST_SSL=""
USER_SETTINGS=true
ENABLE_ANNOTATIONS=true
SCREENSHOTS_UPLOAD_BINARY=true

export NO_UGLIFY=true
export NODE_ENV=dev
6 changes: 3 additions & 3 deletions bin/build-scripts/bundle_dependencies
Expand Up @@ -41,9 +41,9 @@ build() {
exit 2
fi
echo -n "bundle... "
NODE_ENV=production browserify -o "$dest" \
-g [ envify --NODE_ENV production ] \
-g uglifyify \
NODE_ENV="${NODE_ENV:-production}" browserify -o "$dest" \
-g [ envify --NODE_ENV $NODE_ENV ] \
$( [[ -z $NO_UGLIFY ]] && printf %s '-g uglifyify' ) \
-e "$@"
if [[ -z "$NO_UGLIFY" ]] ; then
echo -n "minimizing... "
Expand Down

0 comments on commit 2642c89

Please sign in to comment.