svitejs / vite-plugin-qrcode

Show QR code on server start
MIT License
147 stars 3 forks source link

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

License

MIT