Browse Source

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

j8
Lyubomir Marinov 10 years ago
parent
commit
2740041a82
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Makefile

+ 4
- 3
Makefile View File

@@ -1,8 +1,9 @@
1
-NPM = npm
2 1
 BROWSERIFY = browserify
2
+DEPLOY_DIR = libs
3 3
 GLOBAL_FLAGS = -x jquery -e
4
+NPM = npm
4 5
 OUTPUT_DIR = .
5
-DEPLOY_DIR = libs
6
+UGLIFYJS = uglifyjs
6 7
 
7 8
 all: compile deploy clean uglify
8 9
 
@@ -27,7 +28,7 @@ deploy:
27 28
 	([ ! -x deploy-local.sh ] || ./deploy-local.sh)
28 29
 
29 30
 uglify:
30
-	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
31
+	$(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
31 32
 
32 33
 source-package:
33 34
 	mkdir -p source_package/jitsi-meet && \

Loading…
Cancel
Save