Created
May 29, 2016 22:43
-
-
Save o-shabashov/45f9b84f3218a3ffaf679ce4af1afd0c to your computer and use it in GitHub Desktop.
Yii2 force clean assets cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Global in config/web.php | |
'components' => [ | |
// ... | |
'assetManager' => [ | |
'forceCopy' => YII_DEBUG, | |
], | |
// ... | |
] | |
?> | |
OR | |
<?php | |
// In specific AssetBundle | |
public $publishOptions = [ | |
'forceCopy' => YII_DEBUG, | |
]; | |
?> | |
OR | |
<?php | |
// List Assets in config/web.php | |
'components' => [ | |
'assetManager' => [ | |
'class' => 'yii\web\AssetManager', | |
'bundles' => [ | |
'yii\bootstrap\BootstrapAsset' => [ | |
'forceCopy' => YII_DEBUG, | |
], | |
], | |
], | |
], | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment