Defines the path to uglifyjs as a variable in the fashion of the path to browserify.

This commit is contained in:
Lyubomir Marinov 2015-09-15 14:18:34 -05:00
parent c7b6cb5b94
commit 2740041a82
1 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,9 @@
NPM = npm
BROWSERIFY = browserify
GLOBAL_FLAGS = -x jquery -e
OUTPUT_DIR = .
DEPLOY_DIR = libs
GLOBAL_FLAGS = -x jquery -e
NPM = npm
OUTPUT_DIR = .
UGLIFYJS = uglifyjs
all: compile deploy clean uglify
@ -27,7 +28,7 @@ deploy:
([ ! -x deploy-local.sh ] || ./deploy-local.sh)
uglify:
uglifyjs -p relative libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map --source-map-url=app.bundle.js.map
$(UGLIFYJS) -p relative libs/app.bundle.js -o libs/app.bundle.min.js --source-map libs/app.bundle.js.map --source-map-url=app.bundle.js.map
source-package:
mkdir -p source_package/jitsi-meet && \