simplepagereloader
v1.0.5
Published
A tool for simple page reloading browser.
Downloads
24
Readme
Simple Page Reloader
A tool for simple page reloading browser.
Install
npm i simplepagereloader -D
Add this code to your browser, for example in main.js
:
import { simplePageReload } from "simplepagereloader/client";
if (import.meta.env.MODE == "development") {
simplePageReload(5050);
}
Run spr_exe
as a socket server with the following command:
spr_exe -p 5050
To reload the page, you can use the command:
spr_exe -r -p 5050
Or if you have installed it locally, you can add it to the scripts in your package.json
.
For example, like this:
"scripts": {
"spr_exe": "spr_exe -p 9090",
"spr_exe_reload": "spr_exe -r -p 9090"
},