Added proper IWA support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user