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
[](https://npmjs.com/package/time-fix-plugin) [](https://npmjs.com/package/time-fix-plugin) [](https://circleci.com/gh/egoist/time-fix-plugin/tree/master) [](https://github.com/egoist/donate) [](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)
|