Overview

Webpack takes all your project's assets (JavaScript, CSS, images) and builds a dependency graph, eventually bundling them into one or more small files that the browser can load efficiently.

Key Concepts

  • Entry: The starting point for building the dependency graph.
  • Output: Where the bundled files are saved.
  • Loaders: Allow Webpack to process non-JavaScript files (e.g., converting Sass to CSS).
  • Plugins: Extend Webpack's functionality for tasks like minification and environment variable injection.

Current Status

While newer tools like Vite are faster for development, Webpack remains the industry standard for complex, highly customized build pipelines.

Related Terms