# yyl-env-pop-webpack-plugin

> 用于注入 entry 下的 pop 弹窗插件， 用来方便调试时识别当前环境是线上还是本地

Latest version **1.0.2** (published 2021-02-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install yyl-env-pop-webpack-plugin
pnpm add yyl-env-pop-webpack-plugin
yarn add yyl-env-pop-webpack-plugin
bun add yyl-env-pop-webpack-plugin
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-02-04 |
| First published | 2020-03-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 14.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | liudaojie |
| Maintainers | jackness |

## Links

- npm: https://www.npmjs.com/package/yyl-env-pop-webpack-plugin
- Repository: https://github.com/jackness1208/yyl-env-pop-webpack-plugin
- Homepage: https://github.com/jackness1208/yyl-env-pop-webpack-plugin#readme
- Issues: https://github.com/jackness1208/yyl-env-pop-webpack-plugin/issues
- npm.io page: https://npm.io/package/yyl-env-pop-webpack-plugin

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [tapable](https://npm.io/package/tapable.md) ^2.2.0
- [yyl-util](https://npm.io/package/yyl-util.md) ^2.3.8

## Recent versions

- 1.0.2 (latest) — 2021-02-04
- 1.0.1 — 2021-01-30
- 1.0.0 — 2021-01-26
- 0.3.1 — 2021-01-25
- 0.3.0 — 2021-01-25
- 0.2.0 — 2020-08-26
- 0.1.5 — 2020-03-25
- 0.1.4 — 2020-03-25
- 0.1.3 — 2020-03-19
- 0.1.2 — 2020-03-19
- 0.1.1 — 2020-03-19
- 0.1.0 — 2020-03-19

## README

# yyl-env-pop-webpack-plugin

用于注入 entry 下的 pop 弹窗插件， 用来方便调试时识别当前环境是线上还是本地

## install

```bash
npm i yyl-env-pop-webpack-plugin --save
```

## USAGE

```javascript
// webpack.config.js
const YylEnvPopWebpackPlugin = require('yyl-env-pop-webpack-plugin')
module.exports = {
  plugins: [
    new YylEnvPopWebpackPlugin({
      text: 'hello world',
      duration: 3000
      enable: true
    })
  ]
}

```

## ts

直接看 types 吧

```typescript
export interface YylEnvPopWebpackPluginOption {
  /** 是否启用 */
  enable?: boolean
  /** 显示文本 */
  text?: string
  /** 显示时间 */
  duration?: number
  /** 过滤 true - 添加 js, false - 跳过 */
  filter?: (name: string) => boolean
}
export interface DefinePluginOption {
  [key: string]: string | number
}
```

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