qdebug-webpack-plugin
v2.1.3
Published
webpack plugin for qdebug
Downloads
3
Maintainers
Readme
qdebug-webpack-plugin
webpack plugin for qdebug
帮助开发者在移动端进行调试,本插件是在 qdebug 的基础上封装的 webpack
插件,通过 webpack
配置即可自动添加 qdebug
调试功能,方便实用。
安装
npm install qdebug-webpack-plugin --save-dev
使用
webpack.conf.js
文件配置里增加以下插件配置即可
// 引入插件
var QdebugPlugin = require('qdebug-webpack-plugin');
module.exports = {
...
plugins: [
new QdebugPlugin({enable: !!argv.debug},option),
...
]
...
}
参数
| 参数 | 说明 | 类型 | 默认值 | 版本 |例子|
|------|------|------|------|------|------|
| enable | 是否使用插件 | Boolean
| false | - |- |
| option | 通qdebug参数 | 'Object' | false | - |- |