build: replace IIFEMODE/sed with cat in makefile

This commit is contained in:
mappu 2017-10-28 11:40:09 +13:00
parent 0bafa59358
commit a109e2dc29
2 changed files with 2 additions and 7 deletions

View File

@ -31,10 +31,8 @@ clean:
bindata.go: client client/* bindata.go: client client/*
rm -fr ./clientpack rm -fr ./clientpack
cp -r ./client ./clientpack cp -r ./client ./clientpack
sed -i -re 's~//IIFEMODE:~~g' clientpack/dcwebui.js ( echo ';(function() {' ; cat clientpack/dcwebui.js ; echo '})();' ) | uglifyjs -o clientpack/dcwebui.min.js -c -m --ie8
uglifyjs clientpack/dcwebui.js -o clientpack/dcwebui.min.js -c -m
lessc --clean-css clientpack/dcwebui.css clientpack/dcwebui.min.css lessc --clean-css clientpack/dcwebui.css clientpack/dcwebui.min.css
#php ./clientpack.php
cat clientpack/index.htm \ cat clientpack/index.htm \
| ./minipack style dcwebui.css clientpack/dcwebui.min.css \ | ./minipack style dcwebui.css clientpack/dcwebui.min.css \
| ./minipack script dcwebui.js clientpack/dcwebui.min.js \ | ./minipack script dcwebui.js clientpack/dcwebui.min.js \

View File

@ -1,5 +1,4 @@
/* dcwebui.js */ /* dcwebui.js */
//IIFEMODE:;(function() {
"use strict"; "use strict";
@ -1190,5 +1189,3 @@ window.onload = function() {
menu.reset(); // sent before login menu.reset(); // sent before login
}); });
}; };
//IIFEMODE:})();