nib icon indicating copy to clipboard operation
nib copied to clipboard

pathjoin() in image.styl converts folder structure to '\' instead of '/' in Windows

Open 2k0ri opened this issue 12 years ago • 3 comments

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 /.

2k0ri avatar Jan 03 '13 10:01 2k0ri

+1

chrisfrancis27 avatar May 08 '13 11:05 chrisfrancis27

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

nite-knite avatar Mar 04 '15 06:03 nite-knite

+1. Still an issue. Any plan to solve this one?

ewino avatar Sep 21 '15 08:09 ewino