Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.42 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.42 KB

Analyzer Bundles example

This example shows how to analyze the output bundles using @next/bundle-analyzer

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example analyze-bundles analyze-bundles-app
# or
yarn create next-app --example analyze-bundles analyze-bundles-app

Analyze webpack output

To analyze your webpack output, invoke the following command:

npm run analyze
# or
yarn analyze

Once the build is completed, you can inspect the bundle by running:

npm run serve
# or
yarn serve