Our GitHub Action supports vanilla webpack projects and Create React App out of the box. For other platforms, see platform specific documentation if available, along with how to use our webpack plugin directly.
By far the simplest way to send us your build stats is to utilize our GitHub Action.
You can set this up in GitHub Actions UI, or you can use the following workflow to get started quickly in your .github/workflows/push.yml
on: pushname: packtracker.iojobs:report:name: report webpack statsruns-on: ubuntu-lateststeps:- uses: actions/checkout@master- name: report webpack statsuses: packtracker/report@2.2.7env:PT_PROJECT_TOKEN: ${{ secrets.PT_PROJECT_TOKEN }}WEBPACK_CONFIG_PATH: ./config/webpack/production.js
You will also need to add your project token as a secret.