From 7c3edc5a05c44e9081d01c550a64be92451585b1 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 9 May 2012 13:03:33 -0700 Subject: [PATCH] Adds node_modules/.bin to the path for the call to uglify --- fabfile/bundle.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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) -- 1.7.0.4