MCPcopy
hub / github.com/webpack/webpack / chunkHasCss

Function chunkHasCss

lib/dependencies/HtmlEntryDependency.js:256–260  ·  view source on GitHub ↗
(chunk, chunkGraph)

Source from the content-addressed store, hash-verified

254 * @returns {boolean} true if the chunk emits a `.css` file
255 */
256const chunkHasCss = (chunk, chunkGraph) =>
257 Boolean(chunkGraph.getChunkModulesIterableBySourceType(chunk, CSS_TYPE)) ||
258 Boolean(
259 chunkGraph.getChunkModulesIterableBySourceType(chunk, CSS_IMPORT_TYPE)
260 );
261
262/**
263 * Deterministic tie-break key for CSS link ordering. `chunk.name` and

Callers 3

applyMethod · 0.85
generateMethod · 0.85
applyMethod · 0.85

Tested by

no test coverage detected