WebOptimizer.Sass icon indicating copy to clipboard operation
WebOptimizer.Sass copied to clipboard

Runtime error - Can't use 'null' voor css variable with Bootstrap 5.2.0

Open htodep opened this issue 2 years ago • 0 comments

The problem

De SCSS file is compiling but not minifying. Gives runtime errors when i check the CSS file

When I open the css file in browser i'm seeing this error(multiple, but this is 1 of them): run-time error CSS1036: Expected expression, found ';' */

When i look up the rule I can see it's a CSS var that is empty: --bs-tooltip-margin: ;

Now i give every css var that's empty a value in SCSS, so i fixed the minifying issue. But these values are from Bootstrap and i don't want to change empty Bootstrap vars when i don't even use them.

What i like to see being fixed

That empty values are accepted and not giving any errors

I'm using Bootstrap 5.2.0 and the latest WebOptimizer packages: Core: 3.0.368 Sass: 3.0.91

How can I fix this and is there a setting for allowing empty values?

htodep avatar Jul 26 '22 08:07 htodep