the-dataface / figma2html

Export Figma frames as responsive HTML and CSS
https://www.figma.com/community/plugin/1109185297790825980/figma2html
MIT License
48 stars 8 forks source link

Option to output resizer as .js file #81

Open sawyerclick opened 1 year ago

sawyerclick commented 1 year ago

Describe the problem

The resizer script can currently only be inlined. This is most immediately a problem for users who want to use multiple figma2html projects without shipping the resizer script each time.

Describe the proposed solution

Add a checkbox to output the resizer script as a separate .js file. In could be included with the pack of exportables, though this would require some refactoring.

This would change generator/html/wrapper.ts's file creation flow.

Alternatives considered

No response

Importance

would make my life easier

Code of Conduct