mardi 10 février 2015

Bootstrap.js is working on local but not in production

I'm managing the dependencies of my Ember app with grunt and require jQuery before bootstrap.js.


Bootstrap.js definitely makes it up to the server, (I can see it inside my minified vendor.js), but while it works fine on local, in production the script neither runs, nor throw errors.


For example, on local, I can do $('#my-modal').modal() just fine. In production, $('#my-modal').modal() returns undefined.


Anybody got any ideas?





Aucun commentaire:

Enregistrer un commentaire