Skip to content

Commit 86fb4fb

Browse files
committed
Update README.md
1 parent 84a4afb commit 86fb4fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ Instead of trying to assemble a hodge-podge collection of PostCSS plugins that "
1616
* 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.
1717

1818
## How is this different from a Less plugin?
19-
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, PostCSS parses the string to make an AST. The [postcss-less-parser] plugin directly converts the evaluated Less AST to a PostCSS AST without re-parsing. WHICH WAS REALLY HARD. But I did it for you. Because I love you.
19+
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, PostCSS parses the string to make an AST.
20+
21+
Instead of parsing twice, the [postcss-less-parser] plugin directly converts the evaluated Less AST to a PostCSS AST without re-parsing. WHICH WAS REALLY HARD. But I did it for you. Because I love you.
2022

2123
I'm not sure if that would have a major performance difference or not. Someone else can do the benchmarks, my brain is full.
2224

0 commit comments

Comments
 (0)