Skip to content

Instantly share code, notes, and snippets.

@otakustay
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otakustay/11027613 to your computer and use it in GitHub Desktop.
Save otakustay/11027613 to your computer and use it in GitHub Desktop.
less error
~/Dev/test ⌚ 14:26:44
$ tree
.
├── bar
│   └── b.less
└── foo
└── a.less
2 directories, 2 files
~/Dev/test ⌚ 14:26:47
$ cat foo/a.less
div {
background-image: url(img/a.png);
}
~/Dev/test ⌚ 14:26:54
$ cat bar/b.less
@import "foo/a.less";
span {
background: url(img/b.png);
}
~/Dev/test ⌚ 14:26:57
$ lessc --ru bar/b.less
div {
background-image: url(foo/img/a.png); <-- 相对于bar/b.less,应该是../foo/img/a.png
}
span {
background: url(img/b.png);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment