1.1.1 • Published 4 years ago

qr-call-webpack-plugin v1.1.1

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

qr-call-webpack-plugin

A webpack plugin of Call the terminal to output QR code through the browser console

Install

$ npm i qr-call-webpack-plugin

Usage

const QRCallWebpackPlugin = require('qr-call-webpack-plugin')
in the webpack
const webpackConfig = {
    ...,
    plugins: [
        ...,
        new QRCallWebpackPlugin({
            small: true
        }),
    ],
}

Options

paramtypedescribe
fileNamesstring or arraythe file names of the injection qr method. If you ignore this option, the qr method will be injected into all bundle files.
smallbooleanoutput small size qrcode
namestringfunction name of the browser

Browser function

Call the qr() method in the browser console, and output the qrcode for terminal.

  • qr('s')

    When the 's' parameter is passed in qr('s') method, terminal will output the small qrcode.

  • qr('l')

    When the 'l' parameter is passed in qr('l') method, terminal will output the big qrcode.