0

I'm running Magento 2 in production mode.

I made some changes in my module JS files.

I try to make the JS change reflecting on the live site, by using following command.

php bin/magento setup:static-content:deploy en_US en_GB ar_SA

I can't see the JS files are updated in pub/static folder.

I have flushed cache php bin/magento cache:flush before and after static-content deploy.

Thanks for your support in advance.

0

Try this extension

https://github.com/DominicWatts/ClearStatic

So clear static content first then compile theme.

Might need to do a hard refresh on js in the browser.

| improve this answer | |
  • I am unable to install extension – Sarvesh Tiwari Apr 5 at 12:02
  • What is the reason? – Dominic Xigen Apr 5 at 15:03
  • after clear static content. static content files are not regenerating... – Sarvesh Tiwari Apr 6 at 7:41
  • Check permissions on pub folder – Dominic Xigen Apr 6 at 19:21

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.