Show QR code on server start.
npm install --save-dev vite-plugin-qrcode
// 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
Package | Changelog |
---|---|
vite-plugin-qrcode | Changelog |
pnpm i
to install dependenciespnpm dev
to run development buildpnpm test
to run testspnpm build
to run build