Yuan Qing Lim
Yuan Qing Lim
Create Figma Plugin does not support hot reload
Can’t the result you’re looking for be achieved by doing a `cd` into the desired parent directory first before running `create-figma-plugin`?
@TheUltDev – Thanks for this! I’ve merged but made a small change to move the logic into `importFresh`; see https://github.com/yuanqing/create-figma-plugin/commit/7d37de769b1b87ce72b0216a55cf6953593b06aa. The fix will be included in `v3.2.0`
Would love to see how Bun could be helpful; do share the results of your tests! That said, I do see Node.js still being the primary supported runtime given that...
The `build-figma-plugin` CLI **does not** require CSS files to have a `.module.css` suffix
Have you tried the `widget/notepad` template?
Likely a bug or something that needs to be configured in `postcss-modules`. In the meantime, you would need to specify something like `style="color: red !important"`. (Though ideally, you’d avoid using...
See https://github.com/yuanqing/create-figma-plugin/issues/127#issuecomment-1292150266 Then add something like this to your `package.json` scripts: ```json "build-production": "NODE_ENV=production build-figma-plugin --typecheck --minify" ```
1. Does this comment help? https://github.com/yuanqing/create-figma-plugin/issues/127#issuecomment-1293194888 2. You can write custom logic (including writing or calling your own custom [esbuild plugin](https://esbuild.github.io/plugins/)) in `build-figma-plugin.ui.js`
I suspect that there’s something you’ve misconfigured. If you’re able to provide a repo with a simple reproduction of the issue, it’d be helpful for investigating further