Quantcast
Channel: bundletransformer Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 698

Commented Unassigned: SCSS: Incorrect url rewrite with variable in url [80]

$
0
0
If using SCSS and bundling without valiables everything works:

this (scss file is in 'Static/Styles' folder):
```
body {
background: url('../Images/back.png') 0 0;
}
```

compiles into:
```
body {
background: url('/Static/Images/back.png') 0 0;
}
```

But! When adding variable to this example:
```
$path: '../Images';
body {
background: url('#{$path}/back.png') 0 0;
}
```

compiles into:
```
body {
background: url('/Static/Styles/../Images/back.png') 0 0;
}
```

I'm using UrlRewritingCssPostProcessor. Why behavior is different? Postprocessor must be working after translating scss into css, isn't he?
Comments: Hello, VorobeY1326! Now BundleTransformer.SassAndScss (see the [Bundle Transformer 1.9.81](http://bundletransformer.codeplex.com/releases/view/618390) release notes) supports the string interpolation in file paths.

Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>