/skia-canvaskit-vite

Starter repo for using Skia CanvasKit with Vite as the bundler

Primary LanguageTypeScriptMIT LicenseMIT

skia-canvaskit-vite

Starter repo for using Skia CanvasKit with Vite as the bundler. I had issues getting this working so hopefully this will help you get past them quicker.

Credit goes to @chientrm for finding a way that works.

Hopefully the integration story will get better in future builds of CanvasKit.

This repo just demonstrates loading CanvasKit with Vite as the bundler and then running the simple animation loop demo.

Usage

  1. npm ci
  2. npm run dev to start development server
  3. npm run build to build for production
  4. npm run preview to start preview server for production build