yes, we do need that replace

fixed issues with building due to non ASCII chars.
This commit is contained in:
Jared Allard
2015-08-19 15:32:25 -07:00
parent d2e954b5ab
commit b803ae7ddd
+4 -2
View File
@@ -57,8 +57,10 @@ function bundle (input, nc, complete) {
})
ws.on('close', function() {
// may need to be added later
// source = source.replace(/[^\x00-\x7F]/g, "");
var source = fs.readFileSync(bundlePath, 'utf8');
source = source.replace(/[^\x00-\x7F]/g, "");
fs.writeFileSync(bundlePath, source, 'utf8');
complete();
})
}