Home > @lynx-js/rspeedy > Performance > printFileSize
Whether to print the file sizes after production build.
See Rsbuild - performance.printFileSize for details.
Signature:
If you don't want to print any information, you can disable it by setting printFileSize to false:
Set total to false to disable total size output.
Set detail to false to disable per-asset size output.
If you don't need to view the size of each static asset, you can set detail to false. In this case, only the total size will be output:
If you don't need to view the gzipped size, you can set compressed to false. This can save some gzip computation time for large projects:
To include only static assets that meet certain criteria, use a filter function with include.
If returned false, the static asset will be excluded and not included in the total size or detailed size.
only output static assets larger than 10kB:
To exclude static assets that meet certain criteria, use a filter function with exclude. If both include and exclude are set, exclude will take precedence.
Rspeedy defaults to excluding source map, license files, and .d.ts type files, as these files do not affect page load performance.
exclude .html files in addition to the default: