Skip to content

Instantly share code, notes, and snippets.

@pjschreifels
Created August 23, 2016 22:29
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 pjschreifels/7a049dbdddca85dd77f3141bf9ad692d to your computer and use it in GitHub Desktop.
Save pjschreifels/7a049dbdddca85dd77f3141bf9ad692d to your computer and use it in GitHub Desktop.
Bootstrapv4-alpha.3 — Tether and RequireJS
"dependencies": [
...
"jquery",
{
"name": "tether",
"path": "../node_modules/tether/dist",
"main": "js/tether",
"resources": [
"css/tether.css"
]
},
{
"name": "tether-amd-wrapper",
"path": "../scripts/tether-amd-wrapper"
},
{
"name": "bootstrap",
"path": "../node_modules/bootstrap/dist",
"main": "js/bootstrap",
"deps": [
"jquery",
"tether",
"tether-amd-wrapper"
],
"resources": [
"css/bootstrap.css"
]
}
]
window.Tether = {};
require(['./tether'], function(Tether) {
window.Tether = Tether;
return Tether;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment