export-html

Export React/Vite pages as self-contained HTML files with inlined CSS and JavaScript.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/TETRA2000/figma-web-studio --skill export-html-tetra2000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: export-html
Source: https://github.com/TETRA2000/figma-web-studio/tree/main/.claude/skills/export-html
Command: npx skills add https://github.com/TETRA2000/figma-web-studio --skill export-html-tetra2000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This solution eliminates the manual effort of converting dynamic React pages into portable, self-contained HTML files by inlining CSS and JavaScript for standalone hosting and distribution.

Core Features & Use Cases

  • Inline CSS/JS export: produce a single HTML file that includes all styles and scripts.
  • Route-based exports: generate dist/{route}/index.html from src/pages/{route}/index.tsx.
  • Verification and portability: ensures the exported page is self-contained and ready for hosting without a build environment.

Quick Start

Provide a page route (for example 'about') to generate a self-contained HTML file at dist/{route}/index.html.

Frequently Asked Questions about export-html

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a React page as a standalone HTML file with inlined CSS and JavaScript?

To export a React page as standalone HTML, this Skill consolidates the target route into a single file with inlined CSS and JavaScript. It renders the specific page and outputs a self-contained dist/{route}/index.html file ready for static hosting.

What does inlining CSS and JS into a single HTML file achieve for static hosting?

Inlining CSS and JS into a single HTML file eliminates external dependencies, producing a portable export that works without a build environment. This ensures the React page renders correctly when hosted on static platforms.

Do I need vite-plugin-singlefile to export single-page HTML from a Vite project?

Yes, vite-plugin-singlefile is required as part of the build toolchain. The Skill uses this plugin alongside a minimal entry point to consolidate the Vite project routes into fully self-contained HTML files.

Can I export specific routes like /about or /products individually from my React app?

Yes, you can export specific routes individually. Provide a page route such as 'about' or 'products', and the Skill renders that targeted page from src/pages/{route}/index.tsx to generate the corresponding dist/{route}/index.html.

What's the best way to convert dynamic React pages into portable HTML for distribution?

The best way to convert dynamic React pages into portable HTML is automating the consolidation process. This Skill handles verification, temporary config creation, targeted page rendering, and final export to eliminate manual conversion effort.

Are there limitations when exporting a React app as a single self-contained HTML file?

This approach applies to static hosting scenarios where a single-page export is needed. Since it targets specific routes and inlines all assets, it is designed for individual page distribution rather than complex multi-route application archiving.