Double check you are in the right file

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the dumb-mistakes-and-gotchas category.

Last Updated: 2024-03-28

I could not get my webpack hot0reload config to work for the life of me, even though my config file had exactly what the docs suggested I use.

It turned out that I had modified the file

/Users/jack/code/oxnotes4/node_modules/@rails/webpacker/lib/install/config/webpacker.yml

instead of:

config/webpack.yml

Lesson

If something isn't working, do a quick git status to ensure you modified the right file. Plus be mindful when searching files to navigate to in your editor: many systems can have files with the same name, just in different folders.