A starter template for building web applications with ElementaryUI powered by Vite.
Click Use this template on GitHub or check the docs about using templates.
- Swift 6.2+ with matching Swift SDK for WebAssembly (swift.org)
- Node.js 22+ with pnpm (nodejs.org, pnpm.io)
- wasm-opt (optional, homebrew or manual)
# Verify Swift toolchain
swift --version
# look for a compiler tag like this: (swift-6.2.3-RELEASE)
# Verify Swift SDK for WebAssembly
swift sdk list
# should contain matching entries, eg: swift-6.2.3-RELEASE_wasm and swift-6.2.3-RELEASE_wasm-embedded
# Install dependencies
pnpm install# Start development server with hot reload
pnpm devRuns an initial debug build of the WebAssembly app in the browser. Swift files are watched and trigger an instant rebuild/reload on save.
# Build in release and bundle for deployment
pnpm build
# Preview the built web app locally
pnpm preview0BSD License - use it freely with no attribution required.