twitter-bootstrap bootstrap 和 bootstrap-sprockets 有什么区别?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34481363/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 23:29:01  来源:igfitidea点击:

What's the difference between bootstrap and bootstrap-sprockets?

ruby-on-railstwitter-bootstrap

提问by Adam Lee

I am using bootstrap with Rails.

我正在使用 Rails 引导程序。

What's the difference between bootstrap and bootstrap-sprockets? Is sprockets the special version of bootstrap?

bootstrap 和 bootstrap-sprockets 有什么区别?链轮是引导程序的特殊版本吗?

回答by Guilherme

The github docfor boostrap-sass explains it:

boostrap-sass的github 文档解释了它:

bootstrap-sprockets and bootstrap should not both be included in application.js.

bootstrap-sprocketsprovides individual Bootstrap Javascript files (alert.js or dropdown.js, for example), while bootstrapprovides a concatenated file containing all Bootstrap Javascripts.

bootstrap-sprockets 和 bootstrap 不应同时包含在 application.js 中。

bootstrap-sprockets提供单独的 Bootstrap Javascript 文件(例如,alert.js 或 dropdown.js),同时bootstrap提供包含所有 Bootstrap Javascript 的连接文件。