metaskills / less-rails

:-1: :train: Less.js For Rails

Home Page:http://github.com/metaskills/less-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Less-rails using lessc --relative-urls by default

pettomartino opened this issue · comments

Hi,
How Can I remove the "--relative-urls" config in less-rails? - http://lesscss.org/usage/#command-line-usage-relative-urls

In less by default this option is disabled, but in 'less-rails' when I call url() css function its produce a relative url.

For example:
app/assets/stylesheets/template/settings.less
@my-background = asset-path('my-image.png');
app/assets/stylesheets/template/header.less
background-image: url(@my-background)

this will output the following:
background-image: url(template/"/assets/my-image.png");

up, I'm stuck with the same issue too. Can anybody look into it? @metaskills ?
less.rb has relativeUrls parameter, but how do we configure it through less-rails?

oh ok I see, there's no way as of now.
I will try and make an improvement here.