{"id":1453,"date":"2017-03-30T10:01:20","date_gmt":"2017-03-30T04:31:20","guid":{"rendered":"http:\/\/www.magewallet.com\/?p=1453"},"modified":"2020-03-13T16:03:52","modified_gmt":"2020-03-13T10:33:52","slug":"magento-2-compile-specific-theme-using-static-content-deploy-command","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-compile-specific-theme-using-static-content-deploy-command\/","title":{"rendered":"Magento 2: How to compile specific theme using static content deploy command?"},"content":{"rendered":"<p>If you want to compile only theme (Package\/Theme) with all that belongs to it, run the command:<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento setup:static-content:deploy --theme Package\/Theme<\/pre>\n<p>If you want to compile the theme only .less files, run the command:<\/p>\n<pre class=\"lang:default decode:true \">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<\/pre>\n<p>To understand how it works and to see how many compilation options exist, run the command:<\/p>\n<pre class=\"lang:default decode:true \">php bin\/magento setup:static-content:deploy -h<\/pre>\n<p>Using the result of the above command, You can compile depending on the language, compile excluding a theme, compile using combinations of any options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to compile only theme (Package\/Theme) with all that belongs to it, run the command: php bin\/magento setup:static-content:deploy &#8211;theme Package\/Theme If you want to compile the theme only .less files, run the command: php bin\/magento setup:static-content:deploy &#8211;theme Package\/Theme &#8211;no-javascript &#8211;no-css &#8211;no-images &#8211;no-fonts &#8211;no-html &#8211;no-misc &#8211;no-html-minify To understand how it works and to see&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/magento-2\/magento-2-compile-specific-theme-using-static-content-deploy-command\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":4745,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[10,189,190,191],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/1453"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=1453"}],"version-history":[{"count":4,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/1453\/revisions"}],"predecessor-version":[{"id":10538,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/1453\/revisions\/10538"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/4745"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=1453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=1453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=1453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}