Closed chenlijun99 closed 5 years ago
@free-easy thanks for using size-plugin bot.
size-plugin bot is not configured properly here.
It always shows an increment of +614 kB
in the bundle size which means it wasn't able to find stats(size-plugin.json
) from the last build.
Reason : size-plugin bot assumes(default) that location of stats file(size-plugin.json
) and application to be in the same directory i.e the root of repository.
In your case, the application is located at the <root>/example
folder and size-plugin bot is updating stats at <root>/size-plugin.json
Ideally, the stats file should be under <root>/example
and you can configure the bot to update the stats file at right location 😊.
Steps:
.github/size-plugin.yml
size-files:
- dir: example
filename: size-plugin.json
For more, refer here
!@kuldeepkeshwar Thank you for the suggestion! I was struggling to find the reason of the problem.
:tada: This PR is included in version 1.0.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Size report for the changes in this PR:
size-plugin Overall size: 614 kB (+614 kB 🚫)
commit: cd8faff59cf10b4361b8b9ad518b6b2cfb19041a