Last active
August 29, 2015 14:00
-
-
Save otakustay/11027613 to your computer and use it in GitHub Desktop.
less error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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