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.

1 Answer 1


Try this extension


So clear static content first then compile theme.

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

  • I am unable to install extension Apr 5, 2020 at 12:02
  • What is the reason? Apr 5, 2020 at 15:03
  • after clear static content. static content files are not regenerating... Apr 6, 2020 at 7:41
  • Check permissions on pub folder Apr 6, 2020 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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