Last active
August 29, 2015 13:56
-
-
Save aslakhellesoy/9070169 to your computer and use it in GitHub Desktop.
How to concatenate and minify js with make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BIN = node_modules/.bin | |
# Combine, ngmin and minify all of our own scripts | |
public/app.js: \ | |
ng-app/providers/providers.js \ | |
ng-app/providers/*.js \ | |
ng-app/cucumber_pro.js \ | |
ng-app/**/*.js | |
ifdef DEBUG | |
cat $^ | \ | |
$(BIN)/ngmin > $@ | |
else | |
cat $^ | \ | |
$(BIN)/ngmin | \ | |
$(BIN)/uglifyjs --output $@ | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment