title: Yii2 add image,css,js files from vendor folder on page from js script
body: <p>I try to create lib for editing pictures. I have main js file for including all other js, css and images files. For example, I used: </p>
  
  <pre><code>$.getScript(site_url + '/vendor/first_folder/second_folder/assets/js/script.js');
  </code></pre>
  
  <p>I read that path for web sets at AppAsset.php, if I will ask change @webroot to @vendor.. at extention configuration I think it will be wrong. I created my MyAsset.php and set there such configurations: </p>
  
  <pre><code>namespace app\vendor\first_folder\second_folder;
  
  use yii\web\AssetBundle;
  
  class EdikEditorAsset extends AssetBundle {
  
      public $sourcePath = '@vendor/first_folder/second_folder/assets/';
      public $css = [
           'css/main.css'
      ];
      public $js = [      
          'js/jquery.colorbox-min.js',      
          'js/main.js'        
      ];   
  }
  </code></pre>
  
  <p>But I cannot include others js, css and image files from my extention, because all js,css and images start including from web folder and I don't know how go do above. What can I change for including js, css, images files from vendor folder?</p>
  
  <p>P.S. 
  I tried to change using different paths this part in js, but noone worked, so I think problem not in this:</p>
  
  <p><code>$.getScript(site_url + '/vendor/first_folder/second_folder/assets/js/script.js</code>);</p>