cebe/assetfree-yii2 composer package
How to use?
cebe/assetfree-yii2 instead of
yiisoft/yii2 in your
Sometimes however, these frontend components are not needed, e.g. if you use Yii to create a Console Application, Background workers or a REST API. So if you do not want to install the composer-asset-plugin on your production servers because you
do not need any asset functionality anyway you may use this package instead of requiring
How does this work?
This package claims to "provide" the required asset packages which are only available when composer-asset-plugin ist installed. In reallity no asset packages are installed, so this is only useful in cases where you do not need them.
While this will work without known issues, when composer-asset-plugin is not installed, you may get in trouble if you run this with the plugin enabled. If the composer-asset-plugin is installed the required packages will get installed and you may not be able to deploy your
composer.lock, which has been created in this situation, to production.
So either make sure the plugin is not installed, or run composer with
If you acidentally ran composer install or update with the plugin the only way to fix it is to delete composer.lock and vendor dir and install again.