mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
added ability to pass string value in minify functions if passed single parameter
This commit is contained in:
parent
7f814ae3be
commit
dcf089e4fd
2 changed files with 40 additions and 37 deletions
|
|
@ -58,7 +58,6 @@ var CloudServer={
|
|||
/* КОНСТАНТЫ */
|
||||
/* index.html */
|
||||
INDEX :'index.html',
|
||||
/* name of direcotory with libs */
|
||||
LIBDIR :'./lib',
|
||||
LIBDIRSERVER :'./lib/server',
|
||||
CSSDIR :'./css',
|
||||
|
|
@ -163,7 +162,7 @@ CloudServer.Minify={
|
|||
:false;
|
||||
|
||||
this.done.html=this._allowed.html?
|
||||
lMinify.html():false;
|
||||
lMinify.html(CloudServer.INDEX):false;
|
||||
|
||||
this.done.css=this._allowed.css?
|
||||
lMinify.cssStyles([CloudServer.CSSDIR + '/style.css',
|
||||
|
|
@ -742,8 +741,8 @@ CloudServer.writeLogsToFile = function(){
|
|||
process.stdout.write = (function(write) {
|
||||
return function(string, encoding, fd) {
|
||||
stdo.write(string);
|
||||
}
|
||||
})(process.stdout.write)
|
||||
}
|
||||
};
|
||||
})(process.stdout.write);
|
||||
};
|
||||
|
||||
CloudServer.start();
|
||||
Loading…
Add table
Add a link
Reference in a new issue