CMS Magento Mastering Development

custom js not showing on frontend until the commands are run magento 2

I am working on a magento 2 store. I have created a custom js file. It is inside


Now whenever I make any changes to my custom.js file, the change does not reflect on frontend until I run the following commands

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f

I have checked my magento installation is in developer mode. Is there a way I do not have to run above commands every time, I make some changes to my custom js file as this makes the development process too slow.
I know I can write my custom js code in google console for testing but how to do it in magento so that I do not need to run these commands for every small change in js.

Leave a Reply

Your email address will not be published. Required fields are marked *