Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有将 rake-pipeline 与 Rails 资产路径集成的好方法?
具体来说,我正在尝试将 gem 中的 JS 文件与我在 app/assets 中的文件捆绑在一起。
您可以在环境配置中自定义预编译资产源 - 例如,(默认情况下)在config/environments/production.rb:
config/environments/production.rb
App::Application.configure do #... config.assets.precompile += %w( ember.js your_additional_gem_asset.js ) #... end
您的额外 gem 资产参考可能包括相对assets目录路径。
assets