optimize-bundle-size
Installation
SKILL.md
Optimize Bundle Size
Use this workflow to keep limits stable by moving non-critical code out of the entry bundle.
1) Set a baseline
- Reference
docs/extend/ci-metrics.mdfor metric definitions and limits workflow details. - Build dist metrics for the target plugin and record current
page load bundle size.
node scripts/build_kibana_platform_plugins --focus <pluginId> --dist --workers 4
cat <pluginDir>/target/public/metrics.json
- If this is a regression investigation, compare plugin limits on branch vs upstream.