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(); }) }