Azure custom task for measuring bundle size of your CRA project in every pull request
- Commenting the pull request with the bundle size using source-map-explorer.
-
Install extension open this link. Follow this link to install extension.
Note: This extension is not publicly available so please raise a issue with your Azure organization name to make it available for your organization.
-
Once the extension is install you can add it in your current pipeline by searching or manually adding it in the pipeline tasks.
-
To add the task you need to some variables also. You can view the description on next to the fields description.
-
Personal Access Token is required to write comment on the pull request. Make sure the PAT token regrate should be have permission to read and write code.
-
For CRA apps the default path for build and static assets are 'build/static/js/*.js'. That is the default path you can edit it if you want else leave it.
-
Base branch by default is master. There is open issue for the features that are not there.
Pull requests, feature ideas and bug reports are very welcome. We highly appreciate any feedback.