vite-plugin-qrcode
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
vite v2.6.1 dev server running at:
> Local: http://localhost:3000/
> Network: http://192.168.2.169:3000/
ready in 186ms.
Visit page on mobile:
http://192.168.2.169:3000/
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█ ▄▄▄▄▄ ██▄▄ ▀▄██▄█ ▄▄▄▄▄ █
█ █ █ █▀▄ █▀ ▀ █ █ █ █
█ █▄▄▄█ █▄▀ █▄▀ ███ █▄▄▄█ █
█▄▄▄▄▄▄▄█▄▀▄█ █▄▀▄█▄▄▄▄▄▄▄█
█ ▄██▀ ▄ █▄ █▄ █ ▀██ ▀▀██
██▄▀▀█▀▄▄█▄▀ ▄█▀ ▀█▄▄▀ █▄ █
█ ▀ ▄▄ ▄██▄ █ ▀ ▀▄▄▄████▀▄█
█ █▀▄█ ▄ ▀█▄▀▄▀▄█▄▀▄▀▄ █
█▄█████▄█▀█▄ ▄▀▀ ▄▄▄ █ ███
█ ▄▄▄▄▄ █ ██▄ █ █ █▄█ ▄██▄█
█ █ █ ██▀ ▀▀▄█▄▄▄ ▄ ▄▀▀█
█ █▄▄▄█ █▀█▄█ ██▀▀▄▀▀▀█▄█ █
█▄▄▄▄▄▄▄█▄██▄██▄▄▄█▄██▄██▄█
Packages
Package | Changelog |
---|---|
vite-plugin-qrcode | Changelog |
Development
pnpm i
to install dependenciespnpm dev
to run development buildpnpm test
to run testspnpm build
to run build