Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 397 Bytes
all: build/page.min.js stats
build:
@mkdir -p build
build/page.min.js: build/page.js
uglifyjs --no-mangle < $< > $@
build/page.js: lib/page.js | build
cp $< $@
stats:
@gzip build/page.min.js -c > build/page.gz
@wc -c build/page.js
@wc -c build/page.min.js
@wc -c build/page.gz
@rm -f build/page.gz
test:
@./node_modules/.bin/serve test
clean:
rm -fr build
.PHONY: stats test clean
Jump to Line
Something went wrong with that request. Please try again.