I’d like to show different html files based on the selected mode & command.
We have the figma.showUI(html: string) function, and the __html__ variable, which contains the default ui.html file content.
Since the function accepts any string, I tried to load another html file as string so I can pass it as parameter, but I am not succeeding in importing the file.
How can I import other html files as string in Typescript?
My goal is to have different html files and show the proper one each time, instead of having a big ui.html file with every UI combination.
I’m using webpack.
