Awesome
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
<img height="360" alt="CLI output" src="https://user-images.githubusercontent.com/34116392/181014171-aa511838-8122-48cf-ad9c-39f0368ee616.png" />
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