Last active
August 29, 2015 14:15
-
-
Save tkdn/17efc255fd9baf0be8ff to your computer and use it in GitHub Desktop.
browserify - jqueryの$をスコープの中に閉じ込めたほうがよいのか、他1点 ref: http://qiita.com/tkdn/items/a29db5b0f30e28018952
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
var $ = require('jquery'); | |
require('jquery.plugin01'); | |
require('jquery.plugin02'); |
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": { | |
"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