devserver-qrcode-webpack-plugin

基于webpack-dev-server的webpack插件 生成二维码

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
devserver-qrcode-webpack-plugin
400.0.64 years ago4 years agoMinified + gzip package size for devserver-qrcode-webpack-plugin in KB

Readme

devserver-qrcode-webpack-plugin
This is a webpack plugin based on webpack-dev-server, which is used to generate qrcode at the terminal.

Install

npm install devserver-qrcode-webpack-plugin --save-dev
yarn add devserver-qrcode-webpack-plugin --dev

Usage

const DevserverQRcodeWebpackPlugin = require('devserver-qrcode-webpack-plugin');

module.exports = {
  entry: 'index.js',
  output: {
    path: __dirname + '/dist',
    filename: 'index_bundle.js'
  },
  plugins: [
    new DevserverQRcodeWebpackPlugin({
      size: 'small'
    })
  ],
  devServer: {}
}

Options

|Name|Type|Default|Description| |:--:|:--:|:--:|:---| |size|String|'small'|'small' or 'large'|