hotcake
Bring HMR-like auto refresh functionality without any server (e.g. websocket
, socket.io
, etc.) and keep it minimal, simple.
Installation
Add following tag to your html file.
Usage
After installation, you can explicitly initialize hotcake with options.
If hotcake not initialized explicitly, it will automatically initialize with default options when window loaded.
Options
name | type | description | default |
---|---|---|---|
observe | string[] |
Path of files to observe. | ['./'] |
interval | number |
Millisecond value of interval between requests. | 3000 |
License
Copyright (C) 2020 Xvezda