projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6625 - undo reset
[roojs1]
/
buildSDK
/
cssminify.js
diff --git
a/buildSDK/cssminify.js
b/buildSDK/cssminify.js
index
69edf12
..
985ca7e
100644
(file)
--- a/
buildSDK/cssminify.js
+++ b/
buildSDK/cssminify.js
@@
-11,9
+11,8
@@
* Usage: seed buildSDK/cssminify.js {OUTPUT} {files........}
*/
* Usage: seed buildSDK/cssminify.js {OUTPUT} {files........}
*/
+return; // do not use this..
-
-File = imports.File.File;
GLib = imports.gi.GLib;
// let's see if this works..
// should be run from top level..
GLib = imports.gi.GLib;
// let's see if this works..
// should be run from top level..
@@
-31,10
+30,13
@@
var out = '';
args.forEach(function(l) {
//out += pack(File.read(pa+'/css/' + l)).replace(/\}/g, "}\n")+"\n";
args.forEach(function(l) {
//out += pack(File.read(pa+'/css/' + l)).replace(/\}/g, "}\n")+"\n";
- out += pack(
File.read(l)
) + "\n";
+ out += pack(
GLib.file_get_contents(path)['contents']
) + "\n";
});
});
+var f = Gio.file_new_for_path(String(outname));
+var data_out = new Gio.DataOutputStream({base_stream:f.replace(null, false, Gio.FileCreateFlags.NONE, null)});
+data_out.put_string(out, null);
+data_out.close(null);
-File.write(outname, out);
print("written " + outname);
print("written " + outname);