This documentation works only for projects using Create React App 2.x
Unfortunately they have removed the --stats flag in 3.x
While the Create React App project maintains great usability by hiding much of the ceremony of webpack behind it's own set of scripts, without ejecting you would otherwise not be able to use our service to track your bundle sizes.
To allow you to maintain your usage of the CRA scripts, we have provided a CLI tool along side our plugin that allows you to upload your stats to us as long as you have a static json stats file available.
You will still need to install our plugin in your project
npm install @packtracker/webpack-plugin
The provided command, packtracker-upload, will upload your stats to our service from a static json file. Luckily, Create React App exposes this json via the --stats flag.
The only caveat to using the command (instead of the plugin) is that you must use environment variables to configure your stat reporting (most importantly PT_PROJECT_TOKEN).