forked from daren.hsu/line_push
56 lines
1.7 KiB
Markdown
56 lines
1.7 KiB
Markdown
|
|
# 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)
|