mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Switch to "config.asset-installer-paths" option as "extra" is deprecated + fixed headers (#16290) [skip ci]
This commit is contained in:
		
				
					committed by
					
						
						Alexander Makarov
					
				
			
			
				
	
			
			
			
						parent
						
							39548bf3e2
						
					
				
				
					commit
					790f6aaed0
				
			@ -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"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user