File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,23 @@ vuepress dev docs --no-cache # remove cache before each build.
113
113
```
114
114
:::
115
115
116
+ ### extraWatchFiles
117
+
118
+ - Type: ` Array `
119
+ - Default: ` [] `
120
+
121
+ Specify extra files to be watched.
122
+
123
+ You can watch any file if you want. File changes will trigger ` vuepress ` rebuilding and real-time updates.
124
+
125
+ ``` js
126
+ module .exports = {
127
+ extraWatchFiles: [
128
+ ' .vuepress/foo.js' , // Relative path usage
129
+ ' /path/to/bar.js' // Absolute path usage
130
+ ]
131
+ }
132
+ ```
116
133
117
134
## Styling
118
135
Original file line number Diff line number Diff line change @@ -109,6 +109,24 @@ vuepress dev docs --no-cache # 在每次构建前删除 cache
109
109
```
110
110
:::
111
111
112
+ ### extraWatchFiles
113
+
114
+ - 类型: ` Array `
115
+ - 默认值: ` [] `
116
+
117
+ 指定额外的需要被监听的文件。
118
+
119
+ 你可以监听任何想监听的文件,文件变动将会触发 ` vuepress ` 重新构建,并实时更新。
120
+
121
+ ``` js
122
+ module .exports = {
123
+ extraWatchFiles: [
124
+ ' .vuepress/foo.js' , // 使用相对路径
125
+ ' /path/to/bar.js' // 使用绝对路径
126
+ ]
127
+ }
128
+ ```
129
+
112
130
## Styling
113
131
114
132
### palette.styl
You can’t perform that action at this time.
0 commit comments