MCPcopy
hub / github.com/webpack/webpack-dev-server / onShutdown

Method onShutdown

lib/Server.js:3802–3806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3800 * @returns {Promise<void>} promise
3801 */
3802 const onShutdown = async () => {
3803 if (stopped) return;
3804 stopped = true;
3805 await this.stop();
3806 };
3807
3808 // Teardown is the one place a loop is unavoidable. A `MultiCompiler` has no
3809 // `shutdown` hook, and its aggregate `watchClose` does NOT fire on

Callers

nothing calls this directly

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected