From b803ae7dddd5f0ae7e1b279310ff5505c6507482 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Wed, 19 Aug 2015 15:32:25 -0700 Subject: [PATCH] yes, we do need that replace fixed issues with building due to non ASCII chars. --- lib/bundle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bundle.js b/lib/bundle.js index a517c8a..8553741 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -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(); }) }