MCPcopy Index your code
hub / github.com/darkreader/darkreader / writeFiles

Function writeFiles

tasks/bundle-css.js:55–61  ·  view source on GitHub ↗
(dest, platforms, debug, css)

Source from the content-addressed store, hash-verified

53}
54
55async function writeFiles(dest, platforms, debug, css) {
56 const enabledPlatforms = Object.values(PLATFORM).filter((platform) => platform !== PLATFORM.API && platforms[platform]);
57 for (const platform of enabledPlatforms) {
58 const dir = getDestDir({debug, platform});
59 await writeFile(`${dir}/${dest}`, css);
60 }
61}
62
63/**
64 * @param {CSSEntry} entry

Callers 2

bundleCSSFunction · 0.70
onChangeFunction · 0.70

Calls 2

getDestDirFunction · 0.90
writeFileFunction · 0.90

Tested by

no test coverage detected