From cab438daf78d49eac6381270b49e7f13778c472d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 23 Jan 2015 15:15:52 -0800 Subject: Added target for minified js/dist/commonmark.min.js. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8800de5..43bf59d 100644 --- a/Makefile +++ b/Makefile @@ -129,6 +129,10 @@ distclean: clean js/dist/commonmark.js: js/lib/index.js ${JSMODULES} browserify --standalone commonmark $< -o $@ +# 'npm install -g uglify-js' for the uglifyjs tool: +js/dist/commonmark.min.js: js/dist/commonmark.js + uglifyjs $< --compress warnings --preamble "/* commonmark $(VERSION) https://github.com/jgm/CommonMark @license BSD3 */" > $@ + testjs: $(SPEC) node js/test.js -- cgit v1.2.3