From: dsc Date: Wed, 9 May 2012 20:03:33 +0000 (-0700) Subject: Adds node_modules/.bin to the path for the call to uglify X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=7c3edc5a05c44e9081d01c550a64be92451585b1;p=limn-bak.git Adds node_modules/.bin to the path for the call to uglify --- diff --git a/fabfile/bundle.py b/fabfile/bundle.py index 81c44c8..46abdae 100644 --- a/fabfile/bundle.py +++ b/fabfile/bundle.py @@ -74,7 +74,9 @@ def bundle_app(): update_version() # XXX: Meh. Maybe this should become python code. local('cat $(coke source_list | grep -v vendor | sed "s/^/var\//") > %(app_bundle)s' % env) - local('%(minify_cmd)s %(app_bundle)s > %(app_bundle_min)s' % env) + # Run the minify command, adding npm's bin directory + with path('node_modules/.bin'): + local('%(minify_cmd)s %(app_bundle)s > %(app_bundle_min)s' % env)