* @private * @returns {Promise }
()
| 1927 | * @returns {Promise<void>} |
| 1928 | */ |
| 1929 | async setupWatchStaticFiles() { |
| 1930 | const watchFiles = /** @type {NormalizedStatic[]} */ (this.options.static); |
| 1931 | |
| 1932 | if (watchFiles.length > 0) { |
| 1933 | for (const item of watchFiles) { |
| 1934 | if (item.watch) { |
| 1935 | await this.watchFiles(item.directory, item.watch); |
| 1936 | } |
| 1937 | } |
| 1938 | } |
| 1939 | } |
| 1940 | |
| 1941 | /** |
| 1942 | * @private |