Directory structure
Figma plugins can be very simple to very complex. I'll share both my directory structures for each use case.
Simple
Here is how I like to structure simple Figma plugins:
- code.js
- ui.html
- ui.js
Complex
Here is how I like to structure more complex Figma plugins:
- code.js
- ui.html
- ui.js