fix: compiler not properly inserting booleans for less/stylus

This commit is contained in:
Lewis Crichton 2023-11-30 19:04:22 +00:00
parent d7e5c06e83
commit ea864b9a00
No known key found for this signature in database

View file

@ -79,7 +79,7 @@ export async function compileUsercss(fileName: string) {
switch (v.type) {
case "checkbox": {
if (["less", "stylus"].includes(preprocessor)) {
varsToPass[k] = varsToPass[k] ? "1" : "0";
varsToPass[k] = varsToPass[k] === "1" ? "true" : "false";
}
break;
}