P
P
Pavel Ivanov2014-10-22 11:27:26
Yii
Pavel Ivanov, 2014-10-22 11:27:26

What is the best way to compile less in Yii 2.0?

Yii 2.0 was recently moved to the stable branch. I'm currently writing an application that is intended to use less. How to use less in Yii 2.0? I have tried two packages, none of them are being pushed to the stable branch. One composer cannot reach ( https://github.com/athos99/assetparser/):

- The requested package athos99/assetparser could not be found in any version, there may be a typo in the package name.

the second requires the dev version of the yii 2.0 package:
nizsheanez/yii2-asset-converter v1.1.6 requires yiisoft/yii2 dev-master -> no matching package found

What do you recommend?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2014-10-22
@miraage

In my opinion, it is better to entrust all work with essays to Grunt / Gulp.

M
Maxim Grechushnikov, 2014-10-22
@maxyc_webber

and I would instruct phpShtorm to do it

S
SOb_S, 2014-11-11
@SOb_S

If it is possible to install lessc (npm) on the server side, and it is not supposed to use autoprefixers or something like that, then let Yii2 compile less itself, write it to an asset with the less extension, it will be compiled into css the first time it is accessed (here we need rights to the folder where the server will write it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question