Skip to content
一个帮助 webpack 拥有假期,拒绝 996,拒绝 ICU,提高工作效率的 webpack 插件
Branch: master
Clone or download
Latest commit b84db34 Apr 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix: 🐛 cons err Apr 6, 2019
.editorconfig feat: 🎉 simple version Apr 4, 2019
.eslintignore feat: 🎉 simple version Apr 4, 2019
.eslintrc feat: 🎉 simple version Apr 4, 2019
.gitignore
CHANGELOG.md
README.md docs: 📝 des Apr 6, 2019
index.js feat: 🎉 simple version Apr 4, 2019
logo.png docs: add logo Apr 6, 2019
package-lock.json chore(release): 1.1.0 Apr 6, 2019
package.json chore(release): 1.1.0 Apr 6, 2019
screenshot.png docs: 📝 add screenshot Apr 6, 2019
webpackErr.png

README.md

一个帮助 webpack 拥有假期,拒绝 996,拒绝 ICU,提高工作效率的 webpack 插件

当然,他也帮助开发者早点下班 这个插件在非工作时间将使 webpack 拒绝编译打包

使用

npm i webpack-plugin-nns-icu -D

nns 为 996 英文首字母缩写

// 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 除了问题,报错内容如下:

message

type: string

自定义报错信息

holiday

type: boolean default: false

设置为 true 时,会把当天当做休息日,应对周中假期情况

You can’t perform that action at this time.