MCPcopy Create free account
hub / github.com/webpack/webpack-cli / addSection

Method addSection

packages/webpack-cli/src/webpack-cli.ts:1492–1493  ·  view source on GitHub ↗
(output: string[], title: string, items: string[])

Source from the content-addressed store, hash-verified

1490 const formatList = (textArray: string[]) => textArray.join("\n");
1491
1492 const addSection = (output: string[], title: string, items: string[]) =>
1493 items.length > 0 ? [...output, sectionTitle(title), formatList(items), ""] : output;
1494
1495 // Header — a branded, divided title for the screen.
1496 let output = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected