0.1.0 • Published 1 year ago

unplugin-qrcode v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

unplugin-qrcode

Print the QR code of the server address of Vite or Webpack in the console.

NPM version

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 */ }),
    ],
  },
}