When Uglify minifies JavaScript any trailing semicolons are truncated. If the JavaScript is a closure (such as jQuery) this causes an error when multiple files comprising of closures are combined. Ensuring that each compiled file content has a semicolon appended fixes the error.
In addition, a check is performed to verify that there is compiled content for each iteration to append to the output.
When Uglify minifies JavaScript any trailing semicolons are truncated. If the JavaScript is a closure (such as jQuery) this causes an error when multiple files comprising of closures are combined. Ensuring that each compiled file content has a semicolon appended fixes the error.
In addition, a check is performed to verify that there is compiled content for each iteration to append to the output.