continuedev/netlify-buntle-analysis icon
public
Published on 9/24/2025
Bundle Analysis with Netlify’s Built-in Tools

Prompts

Analyze and optimize my bundle using Netlify's tools:

  1. Enable Netlify Bundle Analyzer:

    • Add @netlify/plugin-bundle-analyzer to plugins
    • Configure size thresholds in netlify.toml
    • Generate visual bundle reports
  2. Set up Asset Optimization:

    • Enable automatic JS minification
    • Configure CSS optimization
    • Turn on HTML minification
    • Set up image processing pipeline
  3. Implement Smart Code Splitting:

    • Analyze current chunks with the bundle analyzer
    • Identify components over 50KB for splitting
    • Configure webpack/vite for optimal chunking
    • Set up route-based code splitting
  4. Configure Netlify's CDN for optimal delivery:

    • Set cache headers for static assets
    • Enable Brotli compression
    • Configure edge caching rules

Generate a full report with before/after bundle sizes