-
Notifications
You must be signed in to change notification settings - Fork 41
Hot module replacement compatibility #51
Comments
With Laravel Mix it just works fine with HMR. |
I have exactly the same issue (also with webpack encore). Even when using the WatchExternalFilesPlugin like this: It does trigger a build on changes to the templates but somehow the tailwind compiler is not picking up the changes. |
Ah, figured it out! You have to make sure you're in DEV environment. You can do it like so |
Hey! Thank you for your bug report! If you setup HMR, then it should work as expected. |
@nithiz thanks for the tip, that does it! added |
@RobinMalfait maybe it should be specified in the docs or readme that it only works if NODE_ENV is development? |
@filipac Already is: `
` That's how i found out :) But it's easy to assume you're in dev mode automatically when you run yarn encore dev --watch. |
oh, then forgive my stupid thoughts :)) did not notice it |
Hi there,
I've switched to JIT module for a project to test it out and the project is using webpack encore. Does this support HMR? It works in
npm run watch
mode, but in HMR it only gets the initial styles but any change is not picked up, I have to restart the server to see changes.The text was updated successfully, but these errors were encountered: