I'm overriding a core JS file in my module. When I run
php bin/magento static-content:deploy
I started tracking the issue. I found that the file loaded in my
pub/static/path_to_my_file is not updated. According to Magento 2 documentation it should have been updated, which is not happening.
Then after removing the
pub/static folder design of frontend got ugly even after deploying static-content.
What is the cause and what is happening?