ElMassimo / ElMassimo/vite-plugin-full-reload

Proxy mode

Open
#27 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
176
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I run Vite as proxy of built-in php server:
```js
import {defineConfig} from 'vite';
import fullReload from 'vite-plugin-full-reload';

export default defineConfig({
server: {
proxy: {
'/': 'http://localhost:8080'
}
},
plugins: [
fullReload('*.php')
],
});

```

The problem: when I update PHP file, I see «page reload» message in the terminal, but no page reload happens.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the shown Vite server.proxy configuration, the built-in PHP server, and fullReload('*.php'). Trace the reload behavior when a PHP file changes while the page is served through the proxy. Done means the browser reloads after the terminal reports the page reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.