简体   繁体   中英

Ember Fastboot - Bootstrap's Javascript requires jQuery?

I followed the steps on the fastboot quickstart guide, however the only difference is that I am using bootstrap-sass.

How do I tell fastboot that it should include jQuery?

It is explicitly not possible to use jQuery in FastBoot mode. For your use case, you might want to check out the ember-cli-bootstrap-sassy addon, which includes a recent change that skips the Bootstrap JavaScript imports in FastBoot mode (you'd need to pull the addon from GitHub, since this change has not been incorporated into a released version yet).

Related discussion:

As the FastBoot README warns : "Only the most brave should even consider deploying this to production." Hope you're taking that advice to heart =)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM