Added proper IWA support

This commit is contained in:
unfunny
2026-10-20 20:17:01 -04:00
parent 17878c9262
commit 64dc63587f
7 changed files with 134 additions and 6 deletions

View File

@@ -13,8 +13,8 @@ Open `dist/index.html` directly in any browser—no server required.
## Build Targets
- **Singlefile HTML** (`SINGLEFILE=1 vite build`) — self-contained, offline-capable
- **IWA/Chrome Extension** — load popup from `public/manifest.json`
- **Singlefile HTML** (`SINGLEFILE=1 vite build`) — self-contained, offline-capable (~16KB)
- **IWA/Chrome Extension** (`npm run build:iwa`) — Installer for Web Applications manifest at `public/iwa/manifest.json`
- **PWA** — installable app with service worker in `dist/sw.js`
## Project Structure
@@ -24,8 +24,8 @@ src/ # React components (App.jsx, Editor.jsx, Toolbar.jsx)
components/ # MarkdownEditor, LaTeXRenderer, SvgRenderer
hooks/ # useTheme, useKeyboardShortcuts
utils/ # exportDocx, importDocx, fileIo, exportPdf
public/ # sample.md, favicon.svg, icons.svg
dist/ # Production build (single index.html + manifest.json)
public/ # sample.md, favicon.svg, icons.svg, iwa/ (Chrome extension manifest)
dist/ # Production build (single index.html + assets)
```
## Toolchain Quirks