unplugin-qrcode
v0.1.0
Published
Print the QR code of the server address of Vite or Webpack in the console.
Downloads
2
Maintainers
Readme
unplugin-qrcode
Print the QR code of the server address of Vite or Webpack in the console.
Install
npm i unplugin-qrcode
// vite.config.ts
import Starter from 'unplugin-qrcode/vite'
export default defineConfig({
plugins: [
Starter({ /* options */ }),
],
})
Example: playground/
// webpack.config.js
module.exports = {
/* ... */
plugins: [
require('unplugin-qrcode/webpack')({ /* options */ })
]
}
// nuxt.config.js
export default {
buildModules: [
['unplugin-qrcode/nuxt', { /* options */ }],
],
}
This module works for both Nuxt 2 and Nuxt Vite
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-qrcode/webpack')({ /* options */ }),
],
},
}