Skip to content

Struggling a bit with Vite HMR or just --watch flag #2

Answered by oguilleux
Hnnx asked this question in Q&A
Discussion options

You must be logged in to vote

When you dev you never work directly on the hosting. You always do everything locally then bundle your code that you send on your hosting.

So first, do everything locally : WordPress instance + npm run dev.

Second, if you had done that you would have noticed that there is already hot reload :)

Third, please carefully read the readme.

Tell me if this helps.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Hnnx
Comment options

@oguilleux
Comment options

Answer selected by Hnnx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants