I have an ionic 4 application that when I build a production version I get the following error:
ERROR in budgets, maximum exceeded for initial. Budget 5 MB was exceeded by
I am trying to figure out how best to analyze my bundle to see where the my issue might be.
I am not sure how to build a stats.json file and then analyze it.
I tried the following:
after running the following command:
ng build --prod --stats-json
I do NOT see a stats.json file in my www folder.
I do see a stats-es2015.json file.
Is this the file I should be using to analyze my bundle? Or should a stats.json be generated?
when I try to run
npx webpack-bundle-analyzer www/stats-es2015.json
I get the following error:
listen EADDRINUSE: address already in use 127.0.0.1:8888
Any help would be greatly appreciated