Answer the question
In order to leave comments, you need to log in
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.
nizsheanez/yii2-asset-converter v1.1.6 requires yiisoft/yii2 dev-master -> no matching package found
Answer the question
In order to leave comments, you need to log in
In my opinion, it is better to entrust all work with essays to Grunt / Gulp.
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 questionAsk a Question
731 491 924 answers to any question