Uploading stats.json to the stats analyser tool does not work.
Console output says Uncaught SyntaxError: Unexpected token r in JSON at position 0
when uploading any stats.json
I did webpack --profile --json > stats.json
to generate the file.
What’s the fix for this?
stats file needs to have only an object. If you have console.log anywhere in your webpack.config.js or included modules then it will fail. Open up the stats file and see you have