We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4492bea commit e39fa62Copy full SHA for e39fa62
lib/sass-extract-js.js
@@ -31,11 +31,6 @@ function quoteFontName(str) {
31
function getSassValue(sassVar) {
32
const { type, value } = sassVar;
33
switch (type) {
34
- case 'SassString':
35
- case 'SassBoolean':
36
- case 'SassNull':
37
- return value;
38
-
39
case 'SassNumber':
40
return sassVar.unit ? `${value}${sassVar.unit}` : value;
41
@@ -100,7 +95,7 @@ function transformStyles(stylesObj) {
100
95
*/
101
96
const sassExtractJs = {
102
97
run: () => ({
103
- postExtract: extractedVariables => transformStyles(extractedVariables.global || {}),
98
+ postExtract: extractedVariables => transformStyles(extractedVariables.global),
104
99
}),
105
};
106
0 commit comments