Closed unional closed 1 year ago
but a better way is giving each check a name, and name the output as report-{name}.html?
check already has name
but it could contain spaces.
Maybe report-1.html
will be better.
Just checked. I can config it:
{
"name": "tslib",
"path": "./tslib/index.js",
"limit": "15 kb"
}
produce:
{
name: 'tslib',
path: './tslib/index.js',
limit: '15 kb',
files: [ 'D:\\code\\unional\\type-plus\\tslib\\index.js' ],
sizeLimit: 15000,
...
}
I can use that and fall back to {n}
if it contains invalid characters.
Zero-based or one-based? 😛
esbuild-why-0.html
vs esbuild-why-1.html
Let’s start from 1
:)
Yep, that's what I'm doing.
e.g.:
Running
size-limit --why
(usingesbuild
andesbuild-why
) will create areport.html
containing the result of the last one (tslib
) as the previous ones are overwritten.I can change it to add
report-{x}.html
, but a better way is giving each check a name, and name the output asreport-{name}.html
?Currently the
check
contains aname
, but it is the entry file name: