Very simple custom Express server/middleware for live-reloading. It injects a type="module"
script tag before </body>
, and that script just does simple polling to a namespaced (/dev/
) pseudo-API url to check the last time the source files were modified. The server replies based on a Chokidar file watcher.
-
Notifications
You must be signed in to change notification settings - Fork 0
twome/src-change-reload
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Very simple custom Express server/middleware for live-reloading
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published