https://github.com/svitejs/vite-plugin-qrcode
Show QR code on server start
https://github.com/svitejs/vite-plugin-qrcode
Last synced: about 1 month ago
JSON representation
Show QR code on server start
- Host: GitHub
- URL: https://github.com/svitejs/vite-plugin-qrcode
- Owner: svitejs
- License: mit
- Created: 2021-09-30T06:28:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T07:17:48.000Z (over 1 year ago)
- Last Synced: 2024-10-07T11:20:18.684Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 785 KB
- Stars: 146
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-vite - vite-plugin-qrcode - Show QR code on server start. (Plugins / Framework-agnostic Plugins)
- awesome-vite - vite-plugin-qrcode - Show QR code on server start. (Plugins / Framework-agnostic Plugins)
README
# vite-plugin-qrcode
[](https://www.npmjs.com/package/vite-plugin-qrcode)
[](https://github.com/svitejs/vite-plugin-qrcode/actions/workflows/ci.yml)
[](https:///pr.new/svitejs/vite-plugin-qrcode)Show QR code on server start.
## Installation
```bash
npm install --save-dev vite-plugin-qrcode
```## Usage
```js
// vite.config.js
import { qrcode } from 'vite-plugin-qrcode';export default defineConfig({
plugins: [
qrcode() // only applies in dev mode
]
});
``````bash
# start vite with host to show qrcode
vite --host
```
## Packages
| Package | Changelog |
| ------------------------------------------------- | ----------------------------------------------------- |
| [vite-plugin-qrcode](packages/vite-plugin-qrcode) | [Changelog](packages/vite-plugin-qrcode/CHANGELOG.md) |## Development
- `pnpm i` to install dependencies
- `pnpm dev` to run development build
- `pnpm test` to run tests
- `pnpm build` to run build## License
[MIT](./LICENSE)