简体   繁体   English

Ember Fastboot-Bootstrap的Javascript需要jQuery吗?

[英]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. 我按照fastboot快速入门指南中的步骤进行操作,但是唯一的区别是我正在使用bootstrap-sass。

How do I tell fastboot that it should include jQuery? 我如何告诉fastboot它应该包含jQuery?

It is explicitly not possible to use jQuery in FastBoot mode. 显然不可能在FastBoot模式下使用jQuery。 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). 对于您的用例,您可能想查看ember-cli-bootstrap-sassy插件,其中包括最近的更改 ,该更改跳过了FastBoot模式下Bootstrap JavaScript的导入(由于此更改,您需要从GitHub中提取插件)。尚未集成到已发布的版本中)。

Related discussion: 相关讨论:

As the FastBoot README warns : "Only the most brave should even consider deploying this to production." 正如FastBoot自述文件警告的那样“只有最勇敢的人才应该考虑将其部署到生产环境中。” Hope you're taking that advice to heart =) 希望你把这个建议牢记在心=)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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