devserver-qrcode-webpack-plugin

0.0.6 • Public • Published

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'

Package Sidebar

Install

npm i devserver-qrcode-webpack-plugin

Weekly Downloads

43

Version

0.0.6

License

MIT

Unpacked Size

7.91 kB

Total Files

5

Last publish

Collaborators

  • guoxuedong