MCPcopy Index your code
hub / github.com/fontsource/fontsource / packagerVariable

Function packagerVariable

packages/cli/src/google/packager-variable.ts:9–23  ·  view source on GitHub ↗
(id: string, opts: BuildOptions)

Source from the content-addressed store, hash-verified

7import { generateVariableCSS } from './css';
8
9const packagerVariable = async (id: string, opts: BuildOptions) => {
10 const font = APIv2[id];
11 const fontVariable = APIVariable[id];
12
13 const cssGenerate = generateVariableCSS(
14 font,
15 fontVariable,
16 makeVariableFontFilePath,
17 );
18
19 for (const item of cssGenerate) {
20 const cssPath = path.join(opts.dir, item.filename);
21 await fs.writeFile(cssPath, item.css);
22 }
23};
24
25export { packagerVariable };

Callers 2

buildFunction · 0.90

Calls 1

generateVariableCSSFunction · 0.90

Tested by

no test coverage detected