");
const name =
// eslint-disable-next-line no-nested-ternary
typeof item.name !== "undefined"
? item.name
: /** @type {MultiStats} */ (stats).stats
? `unnamed[${index}]`
: "unnamed";
res.write(`
Compilation: ${name}
`);
res.write("
");
const publicPath =
item.publicPath === "auto" ? "" : item.publicPath;
for (const asset of /** @type {NonNullable} */ (
item.assets
)) {
const assetName = asset.name;
const assetURL = `${publicPath}${assetName}`;
res.write(
`-
${assetName}
`
);
}
res.write("
");
res.write("
");
});
res.end("");
});
}
);
}
/**
* @private
* @returns {void}
*/
setupWatchStaticFiles() {
if (/** @type {NormalizedStatic[]} */ (this.options.static).length > 0) {
/** @type {NormalizedStatic[]} */
(this.options.static).forEach((staticOption) => {
if (staticOption.watch) {
this.watchFiles(staticOption.directory, staticOption.watch);
}
});
}
}
/**
* @private
* @returns {void}
*/
setupWatchFiles() {
const { watchFiles } = this.options;
if (/** @type {WatchFiles[]} */ (watchFiles).length > 0) {
/** @type {WatchFiles[]} */
(watchFiles).forEach((item) => {
this.watchFiles(item.paths, item.options);
});
}
}
/**
* @private
* @returns {void}
*/
setupMiddlewares() {
/**
* @type {Array