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 ito install dependenciespnpm devto run development buildpnpm testto run testspnpm buildto run build
