Created
January 22, 2015 17:41
-
-
Save kkemple/2b3a93c040f947e323be to your computer and use it in GitHub Desktop.
Shimming Backbone.$ in Marionette Apps - For Browserify
This file contains 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
/* 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