Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pettomartino opened this issue Aug 7, 2014 · 2 comments
Closed

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

pettomartino opened this issue Aug 7, 2014 · 2 comments

Comments

@pettomartino
Copy link

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");

@ilyapoz
Copy link
Contributor

ilyapoz commented Mar 29, 2016

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?

@ilyapoz
Copy link
Contributor

ilyapoz commented Mar 29, 2016

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

ilyapoz added a commit to ilyapoz/less-rails that referenced this issue Mar 29, 2016
@simi simi closed this as completed in cefd7aa Apr 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants