V
V
vacoo2016-01-14 09:36:14
Less
vacoo, 2016-01-14 09:36:14

Why are resources not converted in yii2?

I want less to be condensed into css. To do this, I did everything according to the documentation - Here is the link .
When updating the browser in the yii2 debagger, the following error occurs:


AssetConverter command 'lessc "C:/OpenServer/domains/p/basic/web/css/style.less" "C:/OpenServer/domains/p/basic/web/css/style.css" --no-color' failed with exit code 1:
STDOUT:
STDERR:
"lessc" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞 �� �ணࠬ��� ��� ������ 䠩���.

When YII_DEBUG is enabled, it's just an error without a description.
Less installed. When executing the command lessc style.less styles.css --no-color in the console, everything is fine.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2016-01-14
@vacoo

Oh, this is your Windows ...
STDERR - perhaps there is a description of the error in the CP866 encoding, you can try to read it and then it will become clear what's wrong.
PS: in general, for the future, I would recommend that you abandon the yii asset manager and collect everything through grunt / gulp. The Yii Cookbook had an instruction for Grunt like

V
vacoo, 2016-01-14
@vacoo

The problem was in the PATH variable. There is a path variable setting in openserver.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question