sprockets-rails
sprockets-rails copied to clipboard
Sprockets Rails integration
Decouple `config.asset_host` assignment from rails: - There is two way to set the asset_host in rails: `config.action_controller.asset_host=` and `config.asset_host=` (the latter being usefull to both set action_mailer/action_controller asset_host) - Opening...
The Environment resolver uses a forgiving search pattern that does not require assets such as images to specify their extension. The Manifest resolver does not. This means that given a...
### Expected behavior I am deploying an application using Capistrano to an environment that consists of multiple hosts. Running `rake assets:precompile` produces `sprockets` manifests with same fingerprint. ### Actual behavior...
Hi, I'm trying to use an `asset_url` within an initializer. Here are some of the options I've tried: ```ruby GemRequiringAssetUrl.configure do |config| Rails.application.config.assets.configure do |_| config.javascript_file_url = ActionController::Base.helpers.asset_url('application.js') end end...
**TL;DR**: A javascript file had invalid encoding and was causing image_path("image.png") to throw an Encoding::InvalidByteSequenceError. That shouldn't be the case, right? I spent all day yesterday trying to debug why...
## Problem This gem does not generate non-digest files anymore. A lot of apps still need the non-digest because some of their assets belongs to an SDK that they need...
sass and uglifier are set in sprockets-rails.gemspec as development dependency. And those look used in test/test_railtie.rb test_compressors However it is actually not used in the test, and it works without...
The docs say: ``` # Dev where debug is true, or digests are disabled %i[ environment ] # Dev default, or production with compile enabled. %i[ manifest environment ] #...
I am getting this one. I haven't yet figured out where it's coming from in the source SCSS. But the last linse in the stacktrace are: ``` sprockets-rails-2.3.3/lib/sprockets/rails/helper.rb:88:in `asset_path' sprockets-3.3.5/lib/sprockets/sass_processor.rb:112:in...
When you add this to your precompile ``` ruby config.assets.precompile