Skip to content

Output which address is your umi-app running at with qrcode.

License

Notifications You must be signed in to change notification settings

Eschere/umi-plugin-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

umi-plugin-qrcode

NPM version npm peer dependency version

Output which address your umi-app is running at with qrcode in terminal.

template

Usage

Install

yarn add umi-plugin-qrcode --dev

Configure in .umirc.js,

export default {
  plugins: [
    ['umi-plugin-qrcode', options],
  ],
}

Options

small: boolean

default true Size of qrcode is smaller or not.

once: boolean

default true Output qrcode at first time of onDevCompileDone or every times.

outputFormat: (originString: string) => string Customize output, support version 0.0.5, e.g:

{
  outputFormat: (url) => `${url}#/?name=tom`
}

LICENSE

MIT

Thanks

  1. address
  2. qrcode-terminal

About

Output which address is your umi-app running at with qrcode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published