public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd608fe
)
Fixed output method under node 0.6 which incorrectly tried to close process.stdout.
author
Jakub Pawlowicz
<jakub@goalsmashers.com>
Tue, 17 Jan 2012 20:05:18 +0000
(21:05 +0100)
committer
Jakub Pawlowicz
<jakub@goalsmashers.com>
Tue, 17 Jan 2012 20:06:36 +0000
(21:06 +0100)
bin/cleancss
patch
|
blob
|
history
diff --git
a/bin/cleancss
b/bin/cleancss
index
5130fc6
..
e149a2b
100755
(executable)
--- a/
bin/cleancss
+++ b/
bin/cleancss
@@
-32,13
+32,11
@@
if (options.source) {
}
function output(cleaned) {
- var out;
if (options.target) {
- out = fs.createWriteStream(options.target, { flags: 'w', encoding: 'utf-8', mode: 0644 });
+ var out = fs.createWriteStream(options.target, { flags: 'w', encoding: 'utf-8', mode: 0644 });
+ out.write(cleaned);
+ out.end();
} else {
-
out = process.stdout
;
+
process.stdout.write(cleaned)
;
}
-
- out.write(cleaned);
- out.end();
};