vite-plugin-qrcode
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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

CLI output

Options

filter

A function that allows you to select addresses to show QR-Codes for in case you have multiple interfaces

Example:

// vite.config.js
import { qrcode } from 'vite-plugin-qrcode';

export default defineConfig({
	plugins: [qrcode({ filter: (url) => url === 'http://192.168.1.1:4173' })]
});

License

MIT

Package Sidebar

Install

npm i vite-plugin-qrcode

Weekly Downloads

3,232

Version

0.2.3

License

MIT

Unpacked Size

8.9 kB

Total Files

7

Last publish

Collaborators

  • bluwy
  • dominik_g
  • bjornlu