# debugtool-webpack-plugin

> a simple plugin for webpack and vconsole

Latest version **1.1.2** (published 2019-06-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install debugtool-webpack-plugin
pnpm add debugtool-webpack-plugin
yarn add debugtool-webpack-plugin
bun add debugtool-webpack-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2019-06-05 |
| First published | 2019-06-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | antwang |
| Maintainers | antwang1988 |
| Keywords | webpack, vconsole, js |

## Links

- npm: https://www.npmjs.com/package/debugtool-webpack-plugin
- Repository: https://github.com/antwang/DebugPlugin
- Homepage: https://github.com/antwang/DebugPlugin#readme
- Issues: https://github.com/antwang/DebugPlugin/issues
- npm.io page: https://npm.io/package/debugtool-webpack-plugin

## Dependencies (2)

- [webpack](https://npm.io/package/webpack.md) ^4.33.0
- [vconsole](https://npm.io/package/vconsole.md) ^3.3.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.2 (latest) — 2019-06-05
- 1.1.1 — 2019-06-05
- 1.1.0 — 2019-06-05
- 1.0.2 — 2019-06-04
- 1.0.1 — 2019-06-04
- 1.0.0 — 2019-06-04

## README

## DebugPlugin

DebugPlugin 是一个基于[vconsole](https://github.com/Tencent/vConsole)的 webpack 插件。用户可以根据当前的环境，决定是否添加 vconsole。

## Usage

### 安装

```
npm install -D debugtool-webpack-plugin
```

### 使用

将插件添加到 webpack 的配置文件中：

```
var DebugPlugin = require('debugtool-webpack-plugin');

module.exports = {
  plugins: [
    new DebugPlugin({
      enable: true
    })
  ]
}
```

### 参数

DebugPlugin 接收一个对象参数 options,例如 `new DebugPlugin({enable:true})`，目前 options 只有一个配置项：

- `enable`。默认是 false，表示是否需要在项目中启用 vconsole。

---
_Source: https://npm.io/package/debugtool-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
