Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

How to use bootstrap package #92

Open
sihingkk opened this Issue · 3 comments

3 participants

@sihingkk
require(['bootstrap'], function () {          });

don't loads any js or css.Schould I load them by hand?

@caolan
Owner

Yes, you have to include the individual files directly:

require(["bootstrap/js/bootstrap-modal", ...], function () { ... });
@caolan
Owner

It can be tricky to make sure that they are loaded AFTER jQuery, you might need to modify the shim configs using something like:

require.config({shims: {"bootstrap/js/bootstrap-modal": {deps: ["jquery"], exports: "jQuery"}}})

I should fork the bootstrap js and make this easier ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.