diff --git a/lib/config/load.js b/lib/config/load.js index dec02769..235f74c3 100644 --- a/lib/config/load.js +++ b/lib/config/load.js @@ -184,7 +184,7 @@ function loadFile(options, config, dir, ready) { var settings = {}; try { - settings = JSON.parse(data); + settings = JSON.parse(data.toString('utf8').replace(/^\uFEFF/, '')); config.loaded.push(filename); } catch (e) { console.error(e);