diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/scripts/build.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/scripts/build.js b/server/sonar-web/scripts/build.js index 7084db2aa08..1b1a952c430 100644 --- a/server/sonar-web/scripts/build.js +++ b/server/sonar-web/scripts/build.js @@ -46,10 +46,10 @@ function build() { } const jsonStats = stats.toJson(); - const withoutSourceMaps = jsonStats.assets.filter(asset => !asset.name.endsWith('.map')); + const onlyJS = jsonStats.assets.filter(asset => asset.name.endsWith('.js')); - console.log(`Biggest assets (${withoutSourceMaps.length} total):`); - sortBy(withoutSourceMaps, asset => -asset.size) + console.log(`Biggest js chunks (${onlyJS.length} total):`); + sortBy(onlyJS, asset => -asset.size) .slice(0, 5) .forEach(asset => { let sizeLabel = formatSize(asset.size); |