Question

I have a requirement where I need to skip the images that were generated by the static-content: deploy in Magento.

In my local and the test environments have --no-images option. But how can I implement this in the Magento cloud environment? Please note that I need to compile the luma store theme but not the images of the luma store.

Please advise.

Était-ce utile?

La solution

You can use below command to deploy particular theme static contents only

php bin/magento setup:static-content:deploy  --theme Vendor/yourtheme

and you can also exclude particular theme using below command replace Magento/backend with the theme which you want to exclude

php bin/magento setup:static-content:deploy --exclude-theme Magento/backend
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top