How To Collect Webpack Stats
how_to_collect_statsLearn how to generate the webpack stats file (.next/stats.json) required for bundle attribution. Choose a manual recipe or an automatic action plan for Copilot to execute.
Instructions
Explain how to generate the webpack stats file (.next/stats.json) required by the bundle attribution tools. Choose manual (a recipe you apply yourself) or automatic (an action plan Copilot executes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | manual: return a recipe to apply yourself. automatic: return an action plan for Copilot to execute. | |
| scenario | No | Collection context. Defaults to webpack. Use turbopack if the app builds with --turbopack. |