vite-plugin-qrcode

March 25, 2026 ยท View on GitHub

npm version CI

Show QR code on server start.

Installation

npm install --save-dev vite-plugin-qrcode

Usage

// vite.config.js
import { qrcode } from 'vite-plugin-qrcode';

export default defineConfig({
  plugins: [
    qrcode() // only applies in dev mode
  ]
});
# start vite with host to show qrcode
vite --host
CLI output

Packages

PackageChangelog
vite-plugin-qrcodeChangelog

Development

  • pnpm i to install dependencies
  • pnpm dev to run development build
  • pnpm test to run tests
  • pnpm build to run build

License

MIT