# vconsole-webpack5-plugin

> 一个基于webpack5的vconsole简易插件

Latest version **1.0.3** (published 2021-01-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install vconsole-webpack5-plugin
pnpm add vconsole-webpack5-plugin
yarn add vconsole-webpack5-plugin
bun add vconsole-webpack5-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.0.3 |
| Published | 2021-01-25 |
| First published | 2021-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 263.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | saozhu |
| Keywords | webpack5, plugin, webpack-plugin, vConsole |

## Links

- npm: https://www.npmjs.com/package/vconsole-webpack5-plugin
- Repository: https://github.com/benfangdesaozhu/vconsole-webpack5-plugin
- Issues: https://github.com/benfangdesaozhu/vconsole-webpack5-plugin/issues
- npm.io page: https://npm.io/package/vconsole-webpack5-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-01-25
- 1.0.2 — 2021-01-25
- 1.0.0 — 2021-01-25
- 1.0.1 — 2021-01-25

## README

# vconsole-webpack5-plugin
webpack plugin for [vConsole](https://github.com/WechatFE/vConsole)

帮助开发者在移动端进行调试，本插件是在 [vConsole](https://github.com/WechatFE/vConsole) 的基础上封装的 `webpack` 插件，通过 `webpack` 配置即可自动添加 `vConsole` 调试功能，方便实用。(改插件仅作为个人练习使用)

## 安装

```bash
npm install vconsole-webpack5-plugin -D
```

## 使用

`webpack.conf.js` 文件配置里增加以下插件配置即可

```js
// 引入插件
var vConsolePlugin = require('vconsole-webpack5-plugin'); 

module.exports = {
    ...

    plugins: [
        new vConsolePlugin({
            enable: true // 发布代码前记得改回 false
        }),
        ...
    ]
    ...
}
```

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