Minifying scripts using GruntJs
问题 I have a couple js files that I can seem to get GruntJs to concat/minify properly. If I do each individually they work fine. If I combine separately then attempt to minify just the combined file it doesn't work either. Here is the error: Any ideas on how to fix this? Or maybe what is causing it? 回答1: There is currently a problem with GruntJs and the BOM I mentioned in the comment of Derick's answer. You can find the issue here: https://github.com/cowboy/grunt/issues/218#issuecomment-6329807