MCPcopy
hub / github.com/ampproject/amphtml / resetServerFiles

Function resetServerFiles

build-system/tasks/serve.js:160–164  ·  view source on GitHub ↗

* Clears server files from the require cache to allow for in-process server * live-reload.

()

Source from the content-addressed store, hash-verified

158 * live-reload.
159 */
160function resetServerFiles() {
161 for (const serverFile of serverFiles) {
162 delete require.cache[path.resolve(serverFile)];
163 }
164}
165
166/**
167 * Stops the currently running server

Callers 1

restartServerFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected