less.js
less.js copied to clipboard
Less. The dynamic stylesheet language.
**What**: fix #3604 **Why**: **How**: For the following ast node ``` [Dimension, Expression] ``` less will skip non-Dimension nodes https://github.com/less/less.js/blob/master/packages/less/src/less/functions/number.js#L26-L31 So, max(1, calc(1 + 1)) is treated as max(1). We...
Closes #2991 Only comments have `isSilent` as far as I could see. No comment should cause a parent to be printed in the 'referenced' case. Thus I'm not even sure...
**What**: fix the issues about eslint error **Why**: code clean **How**: fix with add _ for unused args. **Checklist**: - [N] Documentation - [N] Added/updated unit tests - [A] Code...
**What**: Replacing usage of `.substr()` with `.slice()` **Why**: [String.prototype.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) is deprecated. **Checklist**: - [ ] Documentation N/A - [ ] Added/updated unit tests N/A - [x] Code complete
**What**: fix #3224 **Why**: **How**: Use a new utils function replace `v == null` to fix eslint warning. It's a code style issue. We also can chage ESlint config option...
Hi, so i am using webpack, and created a custom function that returns path to image from manifest.json, as i have to wait until manifest.json is created, before i return...
**What**: I changed some imports to be explicit (regarding ESM rules) Remote sources can't just guess what file you meant to import... things such as index.js is bad... **Why**: File...
My package.json : ``` { ..., "imports": { "#style/*": "./src/style/*" } ... } ``` when i use less-loader to load less file like: ``` @import (refrence) "#style/mixins" ``` i got...
**To reproduce:** ```less @color: red; a { color: @color; } .foo { a:extend(a all) { @color: green; } } ``` **Current behavior:** `.foo a` colour is red. **Expected behavior:** `.foo...
**To reproduce:** ```less // parse ok @c:20px + 20px * 2px; .d { font-size: @c; } // parse ok @c:20px + (20px * 2px); .d { font-size: @c; } //...