anaisbetts / SassAndCoffee

SassAndCoffee adds support in ASP.NET MVC to (you guessed it!) Sass/SCSS and CoffeeScript
http://blog.paulbetts.org/index.php/2011/06/06/new-release-sassandcoffee-0-9-now-not-glacially-slow/
Microsoft Public License
199 stars 37 forks source link

Fix for "undefined is not a function" when combining minified JavaScript #26

Closed ShirtlessKirk closed 12 years ago

ShirtlessKirk commented 13 years ago

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.

anaisbetts commented 12 years ago

Hey, I totally spaced on this, I'm going to merge it right now - sorry about this! I really should've gotten to this sooner.