JS files are not updating in Pub/Static Folder and JS files are also not listing in Source tab of crome in Magento 2

magento.stackexchange https://magento.stackexchange.com/questions/310020

  •  13-04-2021
  •  | 
  •  

Question

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

No correct solution

OTHER TIPS

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
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top