سؤال

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.

هل كانت مفيدة؟

المحلول

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
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top