1

When our production app throws an error it's always on the same line and makes it extremely hard to debug. We've enabled source maps, but this is little help for various reasons. It would be so helpful if we could maintain line breaks when minifying the code which would give us a better clue as to where the problem is. Then I could at least hunt through the compressed code. Any way to do this?

4

1 回答 1

6

好吧,您总是可以将-b选项传递给 UglifyJS(请阅读此处)。这会保留文件的换行符和缩进。

于 2013-10-23T12:57:50.103 回答