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.

4
  • I am unable to install extension Apr 5 '20 at 12:02
  • What is the reason? Apr 5 '20 at 15:03
  • after clear static content. static content files are not regenerating... Apr 6 '20 at 7:41
  • Check permissions on pub folder Apr 6 '20 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.