D
D
Denis Denis2015-12-30 22:20:40
JavaScript
Denis Denis, 2015-12-30 22:20:40

What is the working principle of LESS? How is the output CSS produced?

How does the LESS compiler work?
Ok, Angular searches the tree for directives, and that's how it works. But LESS?
I connect LESS as a library, how does all this happen, because JS does not work with files, and there is no node there?
Thank you, and Happy New Year!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
timfcsm, 2015-12-30
@golovewkin

XMLHttpRequest is the answer to everything... we send a request, in response we get the text from the file - we parse it, we mold it from this CSS - we insert it into the head in the style tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question