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

pull/358/head 668
Lyubomir Marinov 9 years ago
parent c7b6cb5b94
commit 2740041a82
  1. 7
      Makefile

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

Loading…
Cancel
Save