#analyse
3 commande(s) avec le tag #analyse
Commandes partagées par la communauté CodeBox, copiables en un clic.
Angular
Analyser le bundle
Analyse la taille du bundle avec webpack-bundle-analyzer.
npm install -g webpack-bundle-analyzer && ng build --stats-json && npx webpack-bundle-analyzer dist/nom-projet/stats.json
Angular
Build avec stats
Build et génère un fichier stats.json pour analyser le bundle.
ng build --stats-json
Next.js
Analyse du bundle
Permet d’analyser la taille des fichiers (si configuré)
ANALYZE=true npm run build