Skip to content

Commit

Permalink
Minify HTML report hogan.js upon compiling program.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed May 14, 2018
1 parent 29b28de commit e81f8f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ else
endif
# Hogan.js
hoganjs.h: bin2c$(EXEEXT) resources/js/hogan.min.js
if HAS_SEDTR
cat resources/js/hogan.min.js | sed "s/^[ \t]*//" | sed "/^$$/d" | tr -d "\r\n" > resources/js/hogan.min.js.tmp
./bin2c resources/js/hogan.min.js.tmp src/hoganjs.h hogan_js
else
./bin2c resources/js/hogan.min.js src/hoganjs.h hogan_js
endif
# Charts.js
chartsjs.h: bin2c$(EXEEXT) resources/js/charts.js
./bin2c resources/js/charts.js src/chartsjs.h charts_js
Expand Down

0 comments on commit e81f8f4

Please sign in to comment.