Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.assets.precompile += %w( pagespecific.js anotherpage.js )
- config.assets.precompile += ['directory/*']
- # In production.rb
- config.assets.precompile << Proc.new { |path|
- if path =~ /.(css|js)z/
- full_path = Rails.application.assets.resolve(path).to_path
- app_assets_path = Rails.root.join('app', 'assets').to_path
- if full_path.starts_with? app_assets_path
- puts "excluding asset: " + full_path
- false
- else
- puts "including asset: " + full_path
- true
- end
- else
- false
- end
- }
- //= require_directory ./awesome_js_app
- config.assets.precompile += %w( public.css public.js )
Add Comment
Please, Sign In to add comment