Skip to content

svitejs/vite-plugin-qrcode

Repository files navigation

vite-plugin-qrcode

npm version CI Open in Codeflow

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

Package Changelog
vite-plugin-qrcode Changelog

Development

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

License

MIT