themehybrid / mythic

Mythic is a next-generation starter theme designed to help theme authors write elegant, intelligent, and modern code.
https://themehybrid.com/themes/mythic
GNU General Public License v2.0
237 stars 43 forks source link

HMR not working on fresh install #88

Open Greg36 opened 4 years ago

Greg36 commented 4 years ago

I was working on implementing Laravel Mix on my theme in a similar way to how Mythic is setup. Everything was working (including watch and watch:sync) except for HMR when running npm run hot. After modifying CSS or JS files the page would reload, "BrowserSync connected" would popup but there were no changes despite CLI message about file compile.

To be sane I created a new Mythic theme via composer, set it up and same results. To check if it was server config I installed Flywheel Local on my Windows machine and with a fresh install same result.

There were no 404 errors and messages in the console and I'm out of ideas of what might be the cause. Have anybody else had similar problems?