ElMassimo / ElMassimo/vite-plugin-full-reload

Choose path to refresh

Open
#20 1 comment 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
176
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I'd love to have a feature to have a certain path to refresh on a specific changed file.

E.g. I use the plugin with a CMS that stores its content and configuration in txt & yaml files.
- When that content changes, I want to reload all pages *but not* the CMS panel
- When configuration changes, I want to reload only the panel pages

Paths to refresh could also be defined via glob matching.

Example configuration:

```js
plugins: [
FullReload([
{
watch: ["site/{layouts,snippets,templates}/**/*", "content/**/*"],
reload: ["!/panel", "*"]
},
{
watch: ["site/blueprints/**/*"],
reload: ["/panel"]
}
])
],
```

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by reviewing the plugin's current FullReload configuration and file-watching behavior. Define how glob-based watch rules map changed files to reload paths, including the panel exclusion and the two example cases, then add coverage for both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.