Skip to content
APERVEIL / DOCS / HTML

With a bundler — HTML

Use Aperveil custom elements with Vite, webpack or Astro: install them from npm and import the shaders you use.

04

With a bundler

Use the HTML kit's modules with any bundler. Keep the shader and its runtime beside each other.

terminal
npx @aperveil/cli add shader dot-grid --framework html
main.js
import "./components/aperveil/dot-grid/html/aperveil-dot-grid.js";

Color Looks, browser support, performance and access are the same on every platform: see the overview.