MCPcopy
hub / github.com/webpack/webpack / generateCSS

Function generateCSS

test/benchmarkCases/css-modules/options.mjs:11–19  ·  view source on GitHub ↗

* @param {number} i index * @returns {string} generated code

(i)

Source from the content-addressed store, hash-verified

9 * @returns {string} generated code
10 */
11function generateCSS(i) {
12 let css = "";
13
14 for (let c = i; c >= 0; c--) {
15 css += `.class-${c} { color: red; }\n`;
16 }
17
18 return css;
19}
20
21export async function setup() {
22 const __dirname = dirname(fileURLToPath(import.meta.url));

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected