A starter for creating a Figma Plugin with Vue3, Typescript, and Vite
Unocss;unplugin-auto-import;vite-plugin-singlefile;
pnpm i && pnpm watch
All it Need (main + ui):
manifest.json
"main": "dist/code.js",
"ui": "dist/index.html",
- main: to use figma plugin API.
- ui : single html file touch the main
main <=postMessage/onmessage
=> ui