Switch to "config.asset-installer-paths" option as "extra" is deprecated + fixed headers (#16290) [skip ci]

This commit is contained in:
yuniorsk
2018-05-16 16:33:28 +02:00
committed by Alexander Makarov
parent 39548bf3e2
commit 790f6aaed0

View File

@ -215,7 +215,7 @@ To achieve this, we should configure our composer a bit. There are two options t
___ ___
##### Using asset-packagist repository #### Using asset-packagist repository
This way will satisfy requirements of the majority of projects, that need NPM or Bower packages. This way will satisfy requirements of the majority of projects, that need NPM or Bower packages.
@ -248,7 +248,7 @@ $config = [
Visit [asset-packagist.org](https://asset-packagist.org) to know, how it works. Visit [asset-packagist.org](https://asset-packagist.org) to know, how it works.
##### Using fxp/composer-asset-plugin #### Using fxp/composer-asset-plugin
Compared to asset-packagist, composer-asset-plugin does not require any changes to application config. Instead, it Compared to asset-packagist, composer-asset-plugin does not require any changes to application config. Instead, it
requires global installation of a special Composer plugin by running the following command: requires global installation of a special Composer plugin by running the following command:
@ -265,7 +265,7 @@ Add the following lines to `composer.json` of your project to adjust directories
will be placed, if you want to publish them using Yii: will be placed, if you want to publish them using Yii:
```json ```json
"extra": { "config": {
"asset-installer-paths": { "asset-installer-paths": {
"npm-asset-library": "vendor/npm", "npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower" "bower-asset-library": "vendor/bower"