perf: skip heavy resource webpack stats
Showing 1 of 1 files from the diff.
src/clean-webpack-plugin.ts
changed.
@@ -257,7 +257,13 @@
Loading
257 | 257 | /** |
|
258 | 258 | * Fetch Webpack's output asset files |
|
259 | 259 | */ |
|
260 | - | const assets = stats.toJson().assets || []; |
|
260 | + | const assets = |
|
261 | + | stats.toJson( |
|
262 | + | { |
|
263 | + | assets: true, |
|
264 | + | }, |
|
265 | + | true, |
|
266 | + | ).assets || []; |
|
261 | 267 | const assetList = assets.map((asset: { name: string }) => { |
|
262 | 268 | return asset.name; |
|
263 | 269 | }); |
Files | Coverage |
---|---|
src/clean-webpack-plugin.ts | 98.86% |
Project Totals (1 files) | 98.86% |
194.0
192.0
194.0
194.0
193.0
192.0
193.0
opq99gg6km34dqoc
opq99gg6km34dqoc
8tidv5jpc9rja1sq
opq99gg6km34dqoc
8tidv5jpc9rja1sq
8tidv5jpc9rja1sq
01ehod2yrgccbx2f
01ehod2yrgccbx2f
haaqn4s7wolhua1c
01ehod2yrgccbx2f
haaqn4s7wolhua1c
haaqn4s7wolhua1c
lqfes0doo4aeyngj
lqfes0doo4aeyngj
ie8xju1f535g3e2q
lqfes0doo4aeyngj
ie8xju1f535g3e2q
ie8xju1f535g3e2q
192.0
193.0
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.