Created
September 18, 2014 14:58
-
-
Save adunkman/d24013f4f636018899b0 to your computer and use it in GitHub Desktop.
Sample of using connect-assets (mincer/sprockets-style concatenation) without globals.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require closure_start | |
//= require jQuery | |
//= require the_rest_of_your_dependencies | |
//= require_self | |
//= require closure_end | |
var something = function () { | |
return "this also gets included in the closure, since require_self is defined". | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment