Skip to content

Commit 0dafbfa

Browse files
committed
Update README.md
1 parent 544e635 commit 0dafbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Instead of trying to assemble a hodge-podge collection of PostCSS plugins that "
1111
## Having said that...
1212

1313
* Because this uses the [Less.js] parser and not the default PostCSS processor, some parsing will be different. PostCSS accepts "broken" CSS, whereas Less doubles as a de facto CSS linter, and will return errors if your Less / CSS is poorly structured.
14-
* PostCSS will also sometimes "fix" CSS that uses property hacks, which Less preserves as the property name, or will remove comments from within values, which are also kept in the value by Less.
15-
* The `less()` plugin needs to be the first plugin called.
14+
* PostCSS will also sometimes "fix" CSS that uses property hacks, which Less preserves as the property name. As well, PostCSS will remove comments from within values, which are also kept in the value by Less (in most cases).
1615
* Less.js does not save "raws" when parsing. It also only preserves the start line / column of your source, which is still fine for Source Maps.
16+
* **Important:** The `less()` plugin **needs to be the first PostCSS plugin called**.
1717

1818
## How is this different from a Less plugin?
1919
A plugin like [less-plugin-autoprefix] parses your CSS twice. First, [Less.js] parses your `.less`, evaluates it, and outputs CSS as a string. Then, the [less-plugin-autoprefix] plugin calls PostCSS to parse that CSS output to make an AST.

0 commit comments

Comments
 (0)