添加之间的相应差异是什么?
//= require bootstrap-sprockets
和
//= require bootstrap
到application.js?
bootstrap-sprockets provides individual Bootstrap Javascript files
(alert.js or dropdown.js,for example),while bootstrap provides a
concatenated file containing all Bootstrap Javascripts
有人提供比其他人更好的表现吗?
解决方法
需要通过bootstrap-sprockets引导以便更快地编译.
需要bootstrap-sprockets over bootstrap以便于调试.
While
bootstrap-sprockets
provides individual Bootstrap components for ease of debugging,you may alternatively require the concatenatedbootstrap
for faster compilation