If you want to compile only theme (Package/Theme) with all that belongs to it, run the command:
1 | php bin/magento setup:static-content:deploy --theme Package/Theme |
If you want to compile the theme only .less files, run the command:
1 | php bin/magento setup:static-content:deploy --theme Package/Theme --no-javascript --no-css --no-images --no-fonts --no-html --no-misc --no-html-minify |
To understand how it works and to see how many compilation options exist, run the command:
1 | php bin/magento setup:static-content:deploy -h |
Using the result of the above command, You can compile depending on the language, compile excluding a theme, compile using combinations of any options.
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!
Leave a Reply