node-sass
node-sass copied to clipboard
CSS variables mixed with SCSS variables don't emit proper CSS in 4.8+
// styles.scss
$theme-color: #177380;
body {
--theme-color: $theme-color;
}
Run:
node-sass styles.scss
Output in 4.7.4 (expected):
body {
--theme-color: #177380; }
Output in 4.8.1-4.8.3:
body {
--theme-color: $theme-color; }
$ npm -v
5.6.0
$ node -v
v9.11.1
Please search issue before opening a new one.
body {
--theme-color: #{$theme-color}; }
The old behaviour was a bug that violated the Sass language spec.
Thanks, apologies for not finding the existing issue!
Please search issue before opening a new one.
body { --theme-color: #{$theme-color}; }The old behaviour was a bug that violated the Sass language spec.
Still not working for me