Optimized Webpack/Vite Configuration
Optimize build performance for production
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Generate an optimized [Webpack/Vite] configuration for a production [FRAMEWORK] project. Include: route-based code splitting, asset compression (gzip/brotli), image optimization, tree shaking, source maps for debugging, and environment variables. Explain each important option.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour Vite, pensez à `vite-plugin-compression` (gzip/brotli) et `vite-imagetools` (optimisation via sharp). Activez `rollupOptions.output.manualChunks` pour un code splitting fin. En production, désactivez les sourcemaps (sauf si debugging distant).
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Headlines (Counter-Intuitive Angle)
Differentiation, saturated markets
Forecast key evolutions in your sector
Get a complete prospective analysis of your sector with PESTEL analysis, evolution scenarios, and strategic roadmap.
Bootstrap and Confidence Intervals
Estimating metric uncertainty
Incident Communication Protocol
Managing crisis communication in a school setting