A useful tool for devs to automatically reload a plugin when it changes!
After the plugin is loaded, run this in the console of Revite:
hot();This will open a folder picker, where you will then choose a folder containing the following files:
manifest.json- Your plugin manifest (see below for format)main.js- Your plugin code
Important
manifest.json needs to have all the basic manifest fields, but do NOT include the entrypoint field.
Tip
You could also use a .ts file, providing you also set up a way to compile it to a main.js file via use of tsc or something else!
Clone the repo, and then run yarn build to build the plugin. Then, copy the contents of target/plugin.json and run the following in the console of Revite:
state.plugins.add(/* Paste the contents of plugin.json here */);It should then look something like this:
state.plugins.add({format: 1, version: "1.0.0", ... });