summaryrefslogtreecommitdiff
path: root/hooks/after_prepare
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/after_prepare')
-rwxr-xr-xhooks/after_prepare/uglify.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/hooks/after_prepare/uglify.js b/hooks/after_prepare/uglify.js
index 7364dd93..9d18f563 100755
--- a/hooks/after_prepare/uglify.js
+++ b/hooks/after_prepare/uglify.js
@@ -5,8 +5,7 @@
// Modules
var fs = require('fs');
var path = require('path');
-var cwd = process.cwd();
-var dependencyPath = path.join(cwd, 'node_modules', 'cordova-uglify', 'node_modules');
+var dependencyPath = path.join(process.cwd(), 'node_modules');
// cordova-uglify module dependencies
var UglifyJS = require(path.join(dependencyPath, 'uglify-js'));
var CleanCSS = require(path.join(dependencyPath, 'clean-css'));