S
S
Sergey2016-05-17 09:44:40
css
Sergey, 2016-05-17 09:44:40

How to use less in Yii2?

There was a need to use the style language, I chose less. The question is how can I use it in yii2. Including less.js on the client I think is a bad option, how can I give the collected css?. Tell me what plugins or tools are used for this in practice?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-05-17
@frost18

If you only need LESS and a compressor, then use the standard AssetsManager, it's very simple
www.yiiframework.com/doc-2.0/guide-structure-asset...

K
Kirill Arutyunov, 2016-05-17
@arutyunov

If you are using a grunt/gulp builder, then yii2 has docs on this topic: https://github.com/samdark/yii2-cookbook/blob/mast... You
can also look here: www.yiiframework.ru/forum/ viewtopic.php?f=9&t=14017

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question