简体   繁体   中英

Integrate rake-pipeline with Rails asset paths

Is there a good way to integrate rake-pipeline with the Rails asset paths?

Specifically, I'm trying to bundle JS files from a gem with my files in app/assets.

You can customize precompiled assets sources in the environment configuration — eg, (by default) in config/environments/production.rb :

App::Application.configure do
  #...

  config.assets.precompile += %w( ember.js your_additional_gem_asset.js )

  #...
end

Your additional gem asset reference may include relative assets directory path.

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