webpack

Installation
SKILL.md

Webpack

Webpack is the grandfather of bundlers. While slower than Vite, it offers unparalleled flexibility and remains the engine behind Next.js (legacy), Angular, and enterprise apps.

When to Use

  • Enterprise Webpack 5 Bundling: Managing complex enterprise web applications with custom asset transformations and polyfills.
  • Module Federation Micro-Frontends: Sharing modules, components, and runtime state dynamically across distributed micro-apps.
  • Granular Code Splitting & Caching: Fine-tuning split chunks, vendor optimization, and deterministic bundle hashing.
  • Custom Loader & Plugin Architectures: Extending compilation pipelines with custom AST manipulation and build hooks.

Quick Start

1. Minimal webpack.config.js

const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
Installs
7
GitHub Stars
15
First Seen
Feb 10, 2026