0.2.3 • Published 2 years ago

vite-plugin-qrcode v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

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

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago