Skip to content

Conversation

eager
Copy link
Contributor

@eager eager commented Dec 9, 2011

Imagine the following structure:


less
├── lib
│   ├── color.less
├── main.less
├── foo
│   ├── bar.less
└── foo.less

Contents of main.less:

@import "foo.less";

Contents of foo.less:

@import "foo/bar.less"

Contents of bar.less:

@import "../lib/color.less";

...

Without this patch, less-rhino-1.1.5.js fails to process bar.less, complaining File not found: path/to/less/../lib/color.less.

This fixes relative @imports from LESS files in subdirectories.
cloudhead pushed a commit that referenced this pull request Dec 10, 2011
Fix java.io.FileNotFoundException when @importing from LESS in subdirectory
@cloudhead cloudhead merged commit 4ae2d1b into less:master Dec 10, 2011
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 this pull request may close these issues.

2 participants