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

Incorrect backward file path when using @import in nested folder #52

Closed
paustria opened this issue Jan 2, 2013 · 3 comments
Closed
Labels

Comments

@paustria
Copy link

paustria commented Jan 2, 2013

Here is the scenario.
I have mixins.less in less folder (~\less\mixins.less) with the following code.

background: url(../images/Zurb/bg-feed-top.png) repeat-x scroll 0 0 #FFFFFF;

let's say I have site.less in less\app\facebook folder (~\less\app\facebook\site.less)
I import mixins.less

@import "../../mixins";

In this case, the compiled code in site.css should be

background: url(../../../images/Zurb/bg-feed-top.png) repeat-x scroll 0 0 #FFFFFF;

However, the compiled code in site.css is
background: url(../images/Zurb/bg-feed-top.png) repeat-x scroll 0 0 #FFFFFF;

@marklagendijk
Copy link
Owner

This is the default behaviour of LESS: relative paths aren't rewritten but remain exactly as they are in the source file. LESS does offer rewriting by specifying some option, though. I might look into building that option into WinLess.

@ReneDrie
Copy link

I've got the same issue. Also with a forward path.
Working on OSX with Less.app it does work. But changing the files in a Windows environment with WinLess breaks all the url attributes the same as paustria.
Would be great if this can be fixed, since we use Less the make the code nicer and we don't want 20+ less files in 1 folder.

@marklagendijk
Copy link
Owner

Closing all issues.
WinLess 1.x is now in maintenance mode. This means that at this time no feature requests will be accepted. Bug reports are still welcome, but all current issues are closed to make sure that the open issues are only about current bugs.

WinLess 2.x is a rewrite of WinLess using node-webkit. The development of WinLess 2.0 can be followed here. Most of the work is done, however, since my priorities have shifted it is now not clear whether it will ever be finished. Feature requests will only be accepted after the 2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants