0

I am trying to change the code of JS file in my module but it's not updating in the pub/static folder. when am I checking the source tab of crome it's also not listing under it.

I am following the below step to update module JS to the pub/static folder.

  1. After Changes in Module, JS files run following command

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

  1. after running this command running - php bin/magento cache: clean & flush
  2. after that putting permission 777 But I did not get any changes in that file in pub/static folder.

I am using Ngnix and Redis Cache for my website

Thanks for your support in advance

1 Answer 1

0

Try to clean the static files before, running setup:upgrade before.

bin/magento setup:upgrade
bin/magento setup:static-content:deploy ar_SA en_GB en_US
bin/magento cache:flush
2
  • I have tried this many times. code is updating in js files now but not reflecting on frontend . I have enabled bundling. is it causing me? Commented Apr 12, 2020 at 22:21
  • Hi @SarveshTiwari, not reflecting on the frontend is related to another question. Commented Apr 12, 2020 at 23:48

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.