nib
nib copied to clipboard
pathjoin() in image.styl converts folder structure to '\' instead of '/' in Windows
input;
@import 'nib'
body
image 'img/background.png'
excepted output:
body {
background-image: url("img/background.png");
}
@media all and (-webkit-min-device-pixel-ratio: 1.5) {
body {
background-image: url("img/[email protected]");
-webkit-background-size: auto auto;
-moz-background-size: auto auto;
background-size: auto auto;
}
}
actual output:
body {
background-image: url("img/background.png");
}
@media all and (-webkit-min-device-pixel-ratio: 1.5) {
body {
background-image: url("img\[email protected]");
-webkit-background-size: auto auto;
-moz-background-size: auto auto;
background-size: auto auto;
}
}
pathjoin() in image.styl converts folder structure to \ instead of /.
+1
I reproduced this issue in Windows in my project as well. I can actually get expected result by using stylus executable (0.49.3, btw 0.50.0 makes no difference on this issue), but get backslashes using gulp (3.8.11) with gulp-stylus plugin (2.0.1). Updating Nib from 1.0.3 to 1.1.0 doesn't help. Environment: io.js 1.4.3, Windows 8.1
+1. Still an issue. Any plan to solve this one?