title: Yii2 Asset Convertor
body: <p>I'm trying to use Less with my Yii2 application.
  I use the advanced application and would like to convert my .less files in the frontend/web/css using the asset convertor build in with yii2.</p>
  
  <pre><code>'assetManager' =&gt; [
        'bundles' =&gt; [
              'yii\bootstrap\BootstrapAsset' =&gt; [                     
                   'css' =&gt; []
              ],
  
          ],
       'converter' =&gt; [
           'class' =&gt; 'yii\web\AssetConverter',
           'commands' =&gt; [
              'less' =&gt; ['css', 'lessc {from} {to} --no-color'],
  
           ],
          ],
      ],
  </code></pre>
  
  <p>The above is in my main.php config file.</p>
  
  <pre><code>    class AppAsset extends AssetBundle
  {
      public $basePath = '@webroot';
      public $baseUrl = '@web';
      public $css = [
          'css/site.less',
         'css/superhero.less',
      ];
      public $js = [
      ];
      public $depends = [
          'yii\web\YiiAsset',
          'yii\bootstrap\BootstrapAsset',
      ];
  }
  </code></pre>
  
  <p>The above is the appAsset file.</p>
  
  <p>but how can I install the less tool in my yii2 installation? I put less-1.7.5.js in the root folder where my yii console bootstrap file is but where do I have to adjust the configuration to convert the less files?</p>
  
  <p>Thx in advance!</p>