Skip to main content

Hello, I’m new to figma plugin development. I’ve read the docs and the pages on libraries and bundling, which helped me use webpack to split up my `code.ts` and break it down into smaller more relevant typescript files, but my `ui.html` file is a mess and too crowded with 2600 lines at the moment.

 

I wasn’t able to find a way to move functions and event listeners outside of the default html file and import them from a separate location like I did for the `code.ts`. I also couldn’t figure out how to move styles from the `ui.html` to an independent style sheet like `ui.css`. I did search around prior to posting and looked at related topics about linking css to ui.html but didn’t find a solution.

Be the first to reply!

Reply