Skip to content

Instantly share code, notes, and snippets.

@adunkman
Created September 18, 2014 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adunkman/d24013f4f636018899b0 to your computer and use it in GitHub Desktop.
Save adunkman/d24013f4f636018899b0 to your computer and use it in GitHub Desktop.
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