Vite/Webpack config tuning with tree shaking, code splitting, dynamic imports, Brotli/gzip compression, and source maps
From jm-adknpx claudepluginhub javimontano/jm-adk-alfaThis skill uses the workspace's default tool permissions.
agents/guardian.mdagents/lead.mdagents/specialist.mdagents/support.mdevals/evals.jsonknowledge/body-of-knowledge.mdknowledge/knowledge-graph.mdprompts/meta.mdprompts/primary.mdprompts/variations/deep.mdprompts/variations/quick.mdtemplates/output.docx.mdtemplates/output.htmlOptimize the build pipeline to produce the smallest, fastest-loading bundles possible. Configure tree shaking, code splitting, compression, and source maps for production deployments. [EXPLICIT]
vite.config.ts with build.rollupOptions.output.manualChunks for vendor splitting. [EXPLICIT]optimization.splitChunks with cacheGroups for vendor/common/async chunks. [EXPLICIT]"sideEffects": false in package.json for all pure modules. [EXPLICIT]build.target: 'es2020' — no unnecessary transpilation for modern browsers. [EXPLICIT]React.lazy(() => import('./pages/Dashboard')) for each route. [EXPLICIT]react, firebase, lodash-es. [EXPLICIT]vite-plugin-compression or compression-webpack-plugin. [EXPLICIT].br) and gzip (.gz) for all assets > 1KB. [EXPLICIT]hidden-source-map for production — uploaded to error tracker, not served to users. [EXPLICIT]| Input | Output |
|---|---|
| Application source code | Optimized production bundle |
| Vite/Webpack config | Split chunks (vendor, routes, shared) |
| Built assets | Brotli/gzip compressed files |
| Source maps config | Hidden source maps for error tracking |
size-limit. [EXPLICIT]import { specific } not import * for all dependencies. [EXPLICIT].br files in build output. [EXPLICIT]hidden-source-map mode only. [EXPLICIT]firebase/firestore/lite) reduces bundle by ~60%.React.lazy with retry logic.mini-css-extract-plugin or Vite's built-in CSS splitting.@vitejs/plugin-legacy only if supporting IE11.sideEffects field, verify ESM imports.vite default), use esbuild for transpilation.Example invocations:
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.