Commit 0ca8b83
fix: fix livereload deprecation warning (#38)
Since livereload v0.6.3, we get the warning:
```
$ docsify serve ./docs --open
*** DEPRECATION WARNING *** The exts option will REPLACE extensions in 0.6.4. ***
```
As the author of livereload [commented](napcs/node-livereload#94 (comment)): in the next version, the exts option will REPLACE all the default extensions with only what you specify. That means `exts: ['md']` will only watch markdown files. If we want to also watch default extensions, we should use `extraExts: ['md']`.
This PR upgrade `livereload` and use `extraExts` option to fix the warning.1 parent 855c58a commit 0ca8b83
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments