-
yarn
-
yarn preview:plugin
-
In Figma load your plugin by right-clicking
Plugins > Development > New Plugin
, and select the project'smanifest.json
file -
In another window run
yarn preview:browser
-
To run the React app inside of Figma, run
yarn build:watch
- Ensure that only a single instance of the 'Preview App' is running in your browser and Figma. Multiple instances, can cause an infite feedback loop of messaages to occur.
- The indicator light on the 'Preview App' will turn red if the connection to the websocket server goes down. It will turn green once it reconnects
- If you wish to make changes to the 'preview-server.js' you will need to stop and rerun
yarn preview:browser