1

When I clear admin Static file cache and Css Javascript cache, the JS and CSS files is not regenerating in pub/static.

Each time I have to deploy using

php bin/magento setup:static-content:deploy
  • is your magento in developer mode ? Recheck by php bin/magento deploy:mode:show – Priyank Jul 4 '17 at 12:53
  • yes it is in developer mode. – Jeya Kiruthika Jul 4 '17 at 12:57
0

In developer mode, Magento 2 does not generate static files. It creates symlinks to them from the various modules.

However if you have ran setup:static-content:deploy and have those files in place, it won't update them. Try removing all static files and see if Magento links to them. Make sure you do not remove the .htaccess file form the static folder if you are using apache webserver.

  • there is .htaccess file in pub/static. removing doesnt regenerate the files. Can you please help? – Jeya Kiruthika Jul 4 '17 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.