S
S
sasha2016-09-11 14:24:12
css
sasha, 2016-09-11 14:24:12

Is there a css parser for js that can build AST of property values?

so that a complex property can be decomposed, such as:

font: italic small-caps bolder condensed 16px/3 cursive;

decomposed into a tree and from a tree it was possible to assemble back

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Reshetnikov, 2016-09-11
@xoma3131

Look towards PostCSS It makes no sense to use a library or script if there is a ready-made tool. :-)

D
Dmitry Belyaev, 2016-09-12
@bingo347

https://www.npmjs.com/package/css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question