MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / setupWatchStaticFiles

Method setupWatchStaticFiles

lib/Server.js:1929–1939  ·  view source on GitHub ↗

* @private * @returns {Promise }

()

Source from the content-addressed store, hash-verified

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

Callers 1

initializeMethod · 0.95

Calls 1

watchFilesMethod · 0.95

Tested by

no test coverage detected