LESS: use math:parens-division
This is the default mode in LESS4. Fixes #1154.
This commit is contained in:
parent
914943ed4c
commit
4338f67352
|
@ -37,7 +37,10 @@ const BUILDERS = Object.assign(Object.create(null), {
|
|||
}
|
||||
require(['/vendor/less-bundle/less.min']); /* global less */
|
||||
const varDefs = Object.keys(vars).map(key => `@${key}:${vars[key].value};\n`).join('');
|
||||
return (await less.render(varDefs + source)).css;
|
||||
const res = await less.render(varDefs + source, {
|
||||
math: 'parens-division',
|
||||
});
|
||||
return res.css;
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user