File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 7171 ]
7272 </code></pre>
7373
74+ <h1>Yii2</h1>
75+
76+ <p>Yii2 expects Bower and NPM packages to be installed to <code>vendor/bower</code> and <code>vendor/npm</code> folders respectively.</p>
77+
78+ <p>So, to use asset-packagist for Yii2 projects it's necessary to reassign Bower and NPM aliases in your application config like this:</p>
79+
80+ <pre><code>
81+ $config = [
82+ ...
83+ 'aliases' => [
84+ '@bower' => '@vendor/bower-asset',
85+ '@npm' => '@vendor/npm-asset',
86+ ],
87+ ...
88+ ];
89+ </code></pre>
90+
7491 <h1>Acknowledgements</h1>
7592
7693 <p>This project uses Francois Pluchino's <a href="https://github.com/francoispluchino/composer-asset-plugin">composer-asset-plugin</a> to convert Bower and NPM packages to Composer format.</p>
You can’t perform that action at this time.
0 commit comments