To output the webpack stats JSON file on Create React App, pass --stats argument to the build command. The command will ouput build/bundle-stats.json file if successfull.
npx react-scripts build --stats#8790: Add back in --stats output from webpack