This commit is contained in:
Andrew Henry 2015-10-28 11:09:52 -07:00
parent a2d06583ca
commit bd984abc0f

View File

@ -187,8 +187,10 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define
destPath = path.dirname(destination),
streamOptions = {};
if (file.match(/png$/)){
streamOptions.encoding = 'binary';
console.log("Encoding " + file + " as binary");
streamOptions.encoding = null;
} else {
console.log("Encoding " + file + " as utf8");
streamOptions.encoding = 'utf8';
}