MCPcopy
hub / github.com/webpack/webpack / ensureUniqueHtmlTemplate

Function ensureUniqueHtmlTemplate

lib/config/defaults.js:1694–1695  ·  view source on GitHub ↗
(template)

Source from the content-addressed store, hash-verified

1692 * @returns {string} same template, or `[name].html` if it has no per-module placeholder
1693 */
1694 const ensureUniqueHtmlTemplate = (template) =>
1695 HAS_PATH_PLACEHOLDER_REGEXP.test(template) ? template : "[name].html";
1696 F(output, "htmlFilename", () => {
1697 const filename =
1698 /** @type {NonNullable<Output["htmlFilename"]>} */

Callers 1

applyOutputDefaultsFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected