Skip to content


How to use bootstrap package #92

sihingkk opened this Issue · 3 comments

3 participants

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

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


Yes, you have to include the individual files directly:

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

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.