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.

1 Answer 1

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 Commented Apr 5, 2020 at 12:02
  • What is the reason? Commented Apr 5, 2020 at 15:03
  • after clear static content. static content files are not regenerating... Commented Apr 6, 2020 at 7:41
  • Check permissions on pub folder Commented 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.