Asset hosts with SASS/SCSS
Add this to your
First, in your
config/application.rb file, set your asset host.
Sasset.asset_host = 'http://example.com'
This can also be a Proc. It works the same way as
so feel free to set them to the same thing. See ActionView::Helpers::AssetTagHelper
for more information.
Now anywhere in your SASS/SCSS, you can now use the
// Compiles to: background-image: url('http://example.com/bg.png'); background-image: asset-url('bg.png');
Sasset is written by Alexander Kern.
See the LICENSE file for details (it's the MIT License).