MCPcopy Create free account
hub / github.com/webpack/less-loader / readAssets

Function readAssets

test/helpers/readAssets.js:8–16  ·  view source on GitHub ↗
(compiler, stats)

Source from the content-addressed store, hash-verified

6 * @returns {Record<string, string>} assets
7 */
8export default function readAssets(compiler, stats) {
9 const assets = {};
10
11 for (const asset of Object.keys(stats.compilation.assets)) {
12 assets[asset] = readAsset(asset, compiler, stats);
13 }
14
15 return assets;
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…