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/*
|
||||
rm -fr ./clientpack
|
||||
cp -r ./client ./clientpack
|
||||
sed -i -re 's~//IIFEMODE:~~g' clientpack/dcwebui.js
|
||||
uglifyjs clientpack/dcwebui.js -o clientpack/dcwebui.min.js -c -m
|
||||
( echo ';(function() {' ; cat clientpack/dcwebui.js ; echo '})();' ) | uglifyjs -o clientpack/dcwebui.min.js -c -m --ie8
|
||||
lessc --clean-css clientpack/dcwebui.css clientpack/dcwebui.min.css
|
||||
#php ./clientpack.php
|
||||
cat clientpack/index.htm \
|
||||
| ./minipack style dcwebui.css clientpack/dcwebui.min.css \
|
||||
| ./minipack script dcwebui.js clientpack/dcwebui.min.js \
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* dcwebui.js */
|
||||
//IIFEMODE:;(function() {
|
||||
|
||||
|
||||
"use strict";
|
||||
|
||||
var SENTINEL_PASSWORD = "************";
|
||||
@ -1190,5 +1189,3 @@ window.onload = function() {
|
||||
menu.reset(); // sent before login
|
||||
});
|
||||
};
|
||||
|
||||
//IIFEMODE:})();
|
||||
|
Loading…
Reference in New Issue
Block a user