Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 nodeJS 脚本中使用以下命令来生成 sourceMap:
var uglifyRes = uglify.minify(jsFiles, { outSourceMap: path + ".js.map" }); fs.writeFileSync('foo.js', uglifyRes.code); fs.writeFileSync('foo.js.map', uglifyRes.map);
此代码创建地图,但缩小文件没有对地图的引用。这里有什么问题?
这是 git 上这个案例的一个未解决的问题:
https://github.com/mishoo/UglifyJS2/issues/135