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

Function bundleCSS

tasks/bundle-css.js:92–102  ·  view source on GitHub ↗
({platforms, debug})

Source from the content-addressed store, hash-verified

90 };
91
92 const bundleCSS = async ({platforms, debug}) => {
93 for (const entry of cssEntries) {
94 for (const platform in platforms) {
95 if (!platforms[platform]) {
96 continue;
97 }
98 const css = await bundleCSSEntry(entry, platform === PLATFORM.CHROMIUM_MV2_PLUS);
99 await writeFiles(entry.dest, {[platform]: true}, debug, css);
100 }
101 }
102 };
103
104 /** @type {(changedFiles: string[], watcher: FSWatcher, platforms: any) => Promise<void>} */
105 const onChange = async (changedFiles, watcher, platforms) => {

Callers

nothing calls this directly

Calls 2

bundleCSSEntryFunction · 0.85
writeFilesFunction · 0.70

Tested by

no test coverage detected