yes, we do need that replace
fixed issues with building due to non ASCII chars.
This commit is contained in:
+4
-2
@@ -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();
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user