devserver-qrcode-webpack-plugin
v0.0.6
Published
基于webpack-dev-server的webpack插件 生成二维码
Downloads
120
Maintainers
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'|