MCPcopy Create free account
hub / github.com/jantimon/html-webpack-plugin / getCompiledModuleCount

Function getCompiledModuleCount

spec/CachingSpec.js:36–42  ·  view source on GitHub ↗
(statsJson)

Source from the content-addressed store, hash-verified

34}
35
36function getCompiledModuleCount (statsJson) {
37 return statsJson.modules.filter(function (webpackModule) {
38 return webpackModule.built;
39 }).length + statsJson.children.reduce(function (sum, childCompilationStats) {
40 return sum + getCompiledModuleCount(childCompilationStats);
41 }, 0);
42}
43
44describe('HtmlWebpackPluginCaching', function () {
45 beforeEach(function (done) {

Callers 1

CachingSpec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected