Closed kviron closed 2 years ago
Happens to me as well. Here's a workaround until this is fixed:
For JS:
// vite.config.js
import liveReload from 'vite-plugin-live-reload'
export default defineConfig({
plugins: [
liveReload.default(['...'])
]
})
for TS:
// vite.config.js
import liveReload from 'vite-plugin-live-reload'
type LiveReloadFixType = typeof liveReload
export default defineConfig({
plugins: [
((liveReload as any).default as LiveReloadFixType)(['...'])
]
})
Will look at this in the next days, thank you for reporting the issue!
I released a new version 3.0.0
that should fix this issue! Could you also test it and report if everyting is working as expected?
@arnoson I tested it right now, fixes the issue
Yes, the bug went away with version 3.0.0.
Everything is fine.
I wanted to ask. And it is possible to somehow connect the server proxying to a local domain, to develop a theme on a Wordpress cms.
I tried to use the server.proxy
setting but I couldn't do anything. The plugin shows changes to php files in the console, but does not update the page.
I couldn't configure it in any way, maybe you had experience using Vite + Wordpress Theme
I am building a new project: npm create vite@latest --template vanilia
The vite.config file.js
I am executing the command of the npm run dev I get an error: