Skip to content

Commit c84f5dc

Browse files
Add track field to readme
1 parent 43e45eb commit c84f5dc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ Each file (key in the filesize object) must include an object with key/value pai
3232

3333
Optionally one can target a different project directory via the `p` parameter `yarn filesize -p={PATH}`.
3434

35+
### Track Resource Size
36+
37+
This utility now also supports tracking filesizes without enforcing a max limit. To use this feature add a `track` key to the `filesize` entry.
38+
39+
```json
40+
{
41+
"filesize": {
42+
"track": ["./dist/**/*.mjs"],
43+
}
44+
}
45+
```
46+
47+
These values will be added to the output report for all comression types.
48+
3549
## Security disclosures
3650

3751
The AMP Project accepts responsible security disclosures through the [Google Application Security program](https://www.google.com/about/appsecurity/).

0 commit comments

Comments
 (0)