repeat-request-minder-webpack-plugin

1.0.0 • Public • Published

Welcome to repeat-request-minder-webpack-plugin 👋

Version License: ISC

一个可以帮助你检查项目中是否存在重复请求的webpack插件。使用后会自动监听请求,当发现1秒内有发出多次相同的请求时,会toast提示并在控制台上打印请求信息。

Usage

const RepeatRequestMinderWebpackPlugin = require('./repeat-request-minder-webpack-plugin');
new RepeatRequestMinderWebpackPlugin({
  chunk: 'index',
}),

配置项chunk中填入你希望监听重复请求的entry名字 也可以配置toast是否显示以及toast显示的时长(默认显示toast,时长为3秒)

new RepeatRequestMinderWebpackPlugin({
  chunk: 'index',
  options: {
    isShowToast: true,
    toastTime: 10000
  }
}),

Author

👤 Brady

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Package Sidebar

Install

npm i repeat-request-minder-webpack-plugin

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

7.72 kB

Total Files

4

Last publish

Collaborators

  • sugarturbos