Webpack production mode, source map removal, minification, and optimization flags for WSH 2026. Covers mode, devtool, minimize, splitChunks, concatenateModules, usedExports, and Babel target modernization.
Switching from development/none mode to production mode with proper optimization flags is the single highest-impact change for Lighthouse scores. It reduces bundle size dramatically through minification, tree shaking, and dead code elimination.
Use this skill when executing WSH commands related to webpack optimization, build mode, source maps, or minification.
// Before