Why do i need to run php bin/magento setup:static-content:deploy each time i clear the cache and also running the same command is time consuming.
I enabled apache rewrite! But still why ?
 asked Jul 31, 2016 at 15:11
 
 
 
 Sushivam 
 
 2,6394 gold badges37 silver badges88 bronze badges
 
 1 Answer 1
In development, you don't need to run setup:static-content:deploy at all. Moreover, if you run this command you will break auto update of files on page update because deploy copies files instead of creating symlink
 Ryan Hoerr
 
 12.3k7 gold badges50 silver badges55 bronze badges
 
 
 answered Jul 31, 2016 at 16:44
 
 
 
 KAndy 
 
 21k3 gold badges51 silver badges59 bronze badges
 
 default
 
 
 
pub/static/frontend/<Vendor>/*,var/view_preprocessed/*,var/cache/*, then set your environment todeveloperwithphp bin/magento deploy:mode:set developer. After that Magento will create symlink as KAndy says. Sadly you have to do this each time you change a.lessfile in order to regenerate compiled files. Hope this help you. When you go to production you will need to set the environment toproductionand runsetup:static-content:deploy.