Skip to content

Instantly share code, notes, and snippets.

@adunkman
Created September 18, 2014 14:58
Sample of using connect-assets (mincer/sprockets-style concatenation) without globals.
//= 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".
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment