* Returns true, when the chunk has css. * @param {Chunk} chunk chunk * @param {ChunkGraph} chunkGraph chunk graph * @returns {boolean} true, when the chunk has css
(chunk, chunkGraph)
| 1124 | * @returns {boolean} true, when the chunk has css |
| 1125 | */ |
| 1126 | static chunkHasCss(chunk, chunkGraph) { |
| 1127 | return ( |
| 1128 | Boolean( |
| 1129 | chunkGraph.getChunkModulesIterableBySourceType(chunk, CSS_TYPE) |
| 1130 | ) || |
| 1131 | Boolean( |
| 1132 | chunkGraph.getChunkModulesIterableBySourceType(chunk, CSS_IMPORT_TYPE) |
| 1133 | ) |
| 1134 | ); |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | CssModulesPlugin.getCompilationHooks = createHooksRegistry( |
no test coverage detected