Skip to content

Commit

Permalink
Quieten uglifyjs
Browse files Browse the repository at this point in the history
Uglifyjs randomly spits out newlines to STDERR. Which is tedious.
  • Loading branch information
nickstenning committed Sep 27, 2013
1 parent 4639c97 commit 2fee8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ annotator.%.js: plugin/%.coffee
%.min.js: %.js
@echo $@
@if [ -e $(basename $<).map ]; then \
uglifyjs $< --source-map $(basename $<).min.map --in-source-map $(basename $<).map > $@ ; \
uglifyjs $< --source-map $(basename $<).min.map --in-source-map $(basename $<).map > $@ 2>/dev/null ; \
echo "\n//@ sourceMappingURL=$(basename $<).min.map" >> $@; \
else \
uglifyjs $< > $@ ; \
uglifyjs $< > $@ 2>/dev/null ; \
fi

%.min.css: %.css
Expand Down

0 comments on commit 2fee8b7

Please sign in to comment.