Complete the code to run Angular's production build for bundle size analysis.
ng build --prod --[1]Using --stats-json generates a stats file for bundle size analysis.
Complete the command to analyze the generated stats file with webpack-bundle-analyzer.
webpack-bundle-analyzer [1]The stats JSON file is used as input for the analyzer tool.
Fix the error in this Angular build command to enable source maps for bundle analysis.
ng build --prod --source-map=[1]Setting --source-map=true enables source maps for better bundle analysis.
Fill both blanks to create a custom Angular build configuration for bundle size analysis.
"configurations": { "[1]": { "optimization": [2] } }
Custom config named 'analyze' disables optimization to help analyze bundles.
Fill all three blanks to create a script in package.json for bundle size analysis.
"scripts": { "[1]": "ng build --configuration=[2] --stats-json && webpack-bundle-analyzer dist/[3]" }
This script runs the build with the 'analyze' config and then opens the stats file with the analyzer.