Skip to main content
Question

Reference/import external scripts in ui.html?


Dan0341

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.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings