aboutsummaryrefslogtreecommitdiff
path: root/node_modules/time-fix-plugin/README.md
blob: 20ffe04938ab959bde1d628c46ab2ac959f43ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

# time-fix-plugin

[![NPM version](https://img.shields.io/npm/v/time-fix-plugin.svg?style=flat)](https://npmjs.com/package/time-fix-plugin) [![NPM downloads](https://img.shields.io/npm/dm/time-fix-plugin.svg?style=flat)](https://npmjs.com/package/time-fix-plugin) [![CircleCI](https://circleci.com/gh/egoist/time-fix-plugin/tree/master.svg?style=shield)](https://circleci.com/gh/egoist/time-fix-plugin/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/egoist/donate) [![chat](https://img.shields.io/badge/chat-on%20discord-7289DA.svg?style=flat)](https://chat.egoist.moe)

Why? https://github.com/webpack/watchpack/issues/25

## Install


```bash
npm i time-fix-plugin
```

This is for webpack v4 and above, for lower version please use `time-fix-plugin@1`.

## Usage

```js
// webpack.config.js
const TimeFixPlugin = require('time-fix-plugin')

module.exports = {
  plugins: [
    new TimeFixPlugin(),
    // ...other plugins
  ]
}
```

## Development

```bash
# without timefix
node example/run

# with timefix
node example/run --timefix
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**time-fix-plugin** © [EGOIST](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/time-fix-plugin/contributors)).

> [github.com/egoist](https://github.com/egoist) · GitHub [@EGOIST](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)