Skip to content

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

Open
@htodep

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions