Browse Source

build: replace IIFEMODE/sed with cat in makefile

tags/v1.2.2
mappu 2 years ago
parent
commit
a109e2dc29
2 changed files with 2 additions and 7 deletions
  1. 1
    3
      Makefile
  2. 1
    4
      client/dcwebui.js

+ 1
- 3
Makefile View File

@@ -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
- 4
client/dcwebui.js View File

@@ -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…
Cancel
Save