Skip to content

Instantly share code, notes, and snippets.

@tkdn
Last active August 29, 2015 14:15
Show Gist options
  • Save tkdn/17efc255fd9baf0be8ff to your computer and use it in GitHub Desktop.
Save tkdn/17efc255fd9baf0be8ff to your computer and use it in GitHub Desktop.
browserify - jqueryの$をスコープの中に閉じ込めたほうがよいのか、他1点 ref: http://qiita.com/tkdn/items/a29db5b0f30e28018952
var $ = require('jquery');
require('jquery.plugin01');
require('jquery.plugin02');
{
"browserify": {
"transform": [
"browserify-shim"
]
},
"browser": {
"jquery": "./lib/vendor/jquery/dist/jquery.js",
"jquery.plugin01": "./bower_components/jquery.plugin01/dist/jquery.plugin01.js",
"jquery.plugin02": "./bower_components/jquery.plugin02/dist/jquery.plugin02.js"
},
"browserify-shim": {
"jquery": "$"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment