I am using following command in nodeJS script to generate sourceMap:
var uglifyRes = uglify.minify(jsFiles, {
outSourceMap: path + ".js.map"
});
fs.writeFileSync('foo.js', uglifyRes.code);
fs.writeFileSync('foo.js.map', uglifyRes.map);
This code creates the map but the minified file doesn't have the reference to map. What can be the problem here?