-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Support absolute import paths in less files (#107)
Absolute paths in imports are now correctly passed through to the filesystem without making them relative to the current directory.
- Loading branch information
1 parent
7616974
commit 266b06d
Showing
8 changed files
with
109 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
19 changes: 19 additions & 0 deletions
19
test/expected/libraries/scopes/comments/lib3/comments/themes/bar/library-RTL.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This is a sample comment! | ||
*/ | ||
.myRule1 { | ||
/** | ||
* This is a sample comment inside a rule | ||
* with a different color value! | ||
*/ | ||
color: #ffffff; | ||
} | ||
b { | ||
color: green; | ||
} | ||
a { | ||
color: green; | ||
} | ||
html { | ||
color: green; | ||
} |
19 changes: 19 additions & 0 deletions
19
test/expected/libraries/scopes/comments/lib3/comments/themes/bar/library.css
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This is a sample comment! | ||
*/ | ||
.myRule1 { | ||
/** | ||
* This is a sample comment inside a rule | ||
* with a different color value! | ||
*/ | ||
color: #ffffff; | ||
} | ||
b { | ||
color: green; | ||
} | ||
a { | ||
color: green; | ||
} | ||
html { | ||
color: green; | ||
} |
15 changes: 15 additions & 0 deletions
15
test/fixtures/libraries/scopes/comments/lib3/comments/themes/bar/library.source.less
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* This is a sample comment! | ||
*/ | ||
|
||
.myRule1 { | ||
/** | ||
* This is a sample comment inside a rule | ||
* with a different color value! | ||
*/ | ||
color: #ffffff; | ||
} | ||
|
||
@import "/lib3/comments/themes/other/sub/my.less"; | ||
@import "./my2.less"; | ||
@import "../my3.less"; |
3 changes: 3 additions & 0 deletions
3
test/fixtures/libraries/scopes/comments/lib3/comments/themes/bar/my2.less
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a { | ||
color: green; | ||
} |
3 changes: 3 additions & 0 deletions
3
test/fixtures/libraries/scopes/comments/lib3/comments/themes/my3.less
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
html { | ||
color: green; | ||
} |
3 changes: 3 additions & 0 deletions
3
test/fixtures/libraries/scopes/comments/lib3/comments/themes/other/sub/my.less
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
b { | ||
color: green; | ||
} |
This file contains 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