build: replace IIFEMODE/sed with cat in makefile
This commit is contained in:
parent
0bafa59358
commit
a109e2dc29
4
Makefile
4
Makefile
@ -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 \
|
||||||
|
@ -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:})();
|
|
||||||
|
Loading…
Reference in New Issue
Block a user