Output which address your umi-app is running at with qrcode in terminal.
Install
yarn add umi-plugin-qrcode --dev
Configure in .umirc.js
,
export default {
plugins: [
['umi-plugin-qrcode', 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`
}
MIT