({platforms, debug})
| 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) => { |
nothing calls this directly
no test coverage detected