Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

CSS-Modules hexadecimal @value properties are undefined #2360

@monstersintokyo

Description

@monstersintokyo

While migrating to webpack 2 I stumbled upon CSS-Modules @values being undefined. Interestingly enough values like e.g. 1px or rgb values are working fine. Hexadecimal definitions simply seem to vanish. Moreover I am not sure, why there is a {} after the second definition.

test.sass

@value test_1 #555
@value test_2 rgb(0,255,0)

node node_modules\node-sass\bin\node-sass test.sass > test.css produces:

test.css

@value test_1;
@value test_2 rgb(0,255,0) {}

version info:

$ node-sass --version
node-sass       4.5.2   (Wrapper)       [JavaScript]
libsass         3.5.0.beta.2    (Sass Compiler) [C/C++]

Windows 10
$ node -v
v4.8.2

Sassmeister output:

@value test_1 #555
@value test_2 rgb(0,255,0);

Ruby output on win xp host:

@value test_1 #555;
@value test_2 rgb(0,255,0);

/*# sourceMappingURL=test.css.map */

version info:

$ ruby -v
ruby 2.0.0p648 (2015-12-16) [i386-mingw32]

$ sass -v
Sass 3.4.23 (Selective Steve)

I could reproduced the said behaviour since node-sass 3.6.0 with libsass 3.3.6.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions