Last active
August 29, 2015 13:59
-
-
Save Rayjax/10646251 to your computer and use it in GitHub Desktop.
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
browserify: { | |
lib: { | |
src: ['client/lib/*.js'], | |
dest: 'client/build/lib.js', | |
options: { | |
shim: { | |
jquery: { | |
path: 'client/lib/jquery-1.11.0.js', | |
exports: '$' | |
}, | |
'jquery.mobile': { | |
path: 'client/lib/jquery.mobile-configured.js', | |
exports: null, | |
depends: { | |
jquery: '$' | |
} | |
}, | |
underscore: { | |
path: 'client/lib/underscore.js', | |
exports: '_' | |
}, | |
backbone: { | |
path: 'client/lib/backbone.js', | |
exports: 'Backbone', | |
depends: { | |
underscore: 'underscore', | |
jquery: '$' | |
} | |
}, | |
'backbone-nested': { | |
path: 'client/lib/backbone-nested.js', | |
exports: null, | |
depends: { | |
jquery: '$', | |
backbone: 'Backbone', | |
underscore: '_' | |
} | |
} | |
} | |
} | |
}, | |
app: { | |
files: { | |
'client/build/app.js': ['client/app/**.js'] | |
}, | |
options: { | |
transform: ['node-underscorify'], | |
external: ['jquery', 'underscore', 'backbone'] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment