lukejacksonn / lukejacksonn/servor
[Feature Request] Inject livereload to each html file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 68
- PR merge metrics
- No merged PRs in 30d
Description
Each served html should have livereloading functional. For now it works only for `index.html` files.
### Why
To use servor livereload feature not only for spa, but for traditional sites as well.
### How
I believe this should work as default, but it could be opt-in.
### Workaround
I found only one way to achieve this - place separate `index.html` into nested directories (one dir per html), link them with `/nested_dir` and run servor with `servor --reload --static`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the servor CLI path used by `--reload --static` and trace how `index.html` is served and livereload is currently attached. Confirm how non-index HTML files are handled; done means livereload works for every served HTML page, with the default-versus-opt-in behavior clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100