mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 01:18:15 +00:00
Changed the way Minify post-processing js-files so, from now in Minify object post-processing functions passed like this {client.js: function(){}}
This commit is contained in:
parent
64e801f7ea
commit
a95d07e6d8
3 changed files with 15 additions and 13 deletions
21
server.js
21
server.js
|
|
@ -162,23 +162,22 @@ CloudServer.Minify={
|
|||
'git submodule init\n' +
|
||||
'git submodule update');
|
||||
}
|
||||
/*
|
||||
* temporary changed dir path,
|
||||
* becouse directory lib is write
|
||||
* protected by others by default
|
||||
* so if node process is started
|
||||
* from other user (root for example
|
||||
* in nodester) we can not write
|
||||
* minified versions
|
||||
*/
|
||||
this.MinFolder = '/' + lMinify.MinFolder;
|
||||
var lMinFolder=this.MinFolder;
|
||||
this.done.js=this._allowed.js?
|
||||
lMinify.jsScripts(['client.js',
|
||||
'lib/cloudfunc.js',
|
||||
'lib/client/keyBinding.js'],
|
||||
{Name: 'client.js',
|
||||
/*
|
||||
* temporary changed dir path,
|
||||
* becouse directory lib is write
|
||||
* protected by others by default
|
||||
* so if node process is started
|
||||
* from other user (root for example
|
||||
* in nodester) we can not write
|
||||
* minified versions
|
||||
*/
|
||||
Func: function(pFinalCode){
|
||||
{'client.js' : function(pFinalCode){
|
||||
console.log('file name of ' +
|
||||
'cloudfunc.js' +
|
||||
' in ' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue