Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/webpack-plugin-996icu
一个帮助 webpack 拥有假期,拒绝 996,拒绝 ICU,提高工作效率的 webpack 插件
https://github.com/huruji/webpack-plugin-996icu
Last synced: 19 days ago
JSON representation
一个帮助 webpack 拥有假期,拒绝 996,拒绝 ICU,提高工作效率的 webpack 插件
- Host: GitHub
- URL: https://github.com/huruji/webpack-plugin-996icu
- Owner: huruji
- License: other
- Created: 2019-04-04T02:10:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T19:51:05.000Z (over 1 year ago)
- Last Synced: 2024-11-11T08:44:06.824Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 951 KB
- Stars: 67
- Watchers: 4
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - webpack-plugin-996icu
README
![](./screenshot.png)
一个帮助 webpack 拥有假期,拒绝 996,拒绝 ICU,提高工作效率的 webpack 插件
> 当然,他也帮助开发者早点下班
> 这个插件在非工作时间将使 webpack 拒绝编译打包## 使用
```bash
npm i webpack-plugin-nns-icu -D
```> nns 为 996 英文首字母缩写
```js
// webpack.config.js
const WebpackPlugin996ICU = require('webpack-plugin-nns-icu')const config = {
// other config options
plugins: [
new WebpackPlugin996ICU()
]
}
```## 参数
### focusWork
type: `boolean`default: `false`
设置为 `true` 时,`996icu` 插件失效,任何时候都能打包成功
### type
type: `normal` | `webpack`设置为 `webpack` 时,输入的报错信息会假装是 `webpack` 出了问题,报错内容如下:
![](./webpackErr.png)
### message
type: string自定义报错信息
### holiday
type: `boolean`
default: `false`设置为 `true` 时,会把当天当做休息日,应对周中假期情况