Magento 2 – Static files won’t regenerate
Posted on January 22, 2020 by jamie
Method 1:
In the Magento Admin. Go to System > Tools > Cache Management
and click Flush Static Files Cache.
If having issues setting permishsion or
Method 2:
If you just changed the CSS file which already exists, what you need to do is just delete the corresponding file in pub/static
, then when you refresh the page, it will generate the new version CSS file. It works in the developer mode.
Ensure pub/static/.htaccess isn’t deleted.