Skip to content

Instantly share code, notes, and snippets.

@kkemple
Created January 22, 2015 17:41
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 kkemple/2b3a93c040f947e323be to your computer and use it in GitHub Desktop.
Save kkemple/2b3a93c040f947e323be to your computer and use it in GitHub Desktop.
Shimming Backbone.$ in Marionette Apps - For Browserify
/* shim.js */
var Backbone = require('Backbone');
Backbone.$ = require('jquery');
/* gruntfile.js */
grunt.initConfig({
browserify: {
src: {
files: {
'dist/app.js': ['shims/shim.js', 'src/main.js']
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment