# Install webpack with Homebrew, apt, Nix

Bundler for JavaScript and friends. Version 5.108.4 via Homebrew; verified 2026-07-06.

## Install

```sh
sudo av install brew:webpack
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install webpack
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install webpack
```

  Evidence: Debian stable package indexes: webpack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#webpack-cli
```

  Evidence: nixpkgs package indexes: pkgs/by-name/we/webpack-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:webpack
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/webpack>
- **Version:** 5.108.4
- **Source summary:** Bundler for JavaScript and friends
- **Homepage:** <https://webpack.js.org/>
- **Repository:** <https://github.com/webpack/webpack>
- **Upstream docs:** <https://webpack.js.org/concepts>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/webpack/-/webpack-5.108.4.tgz>
- **Last updated:** 2026-07-06T17:57:07Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- webpack (cli)
- webpack-cli (cli)
- webpack (alias)
- webpack-cli (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.108.4
- Package-manager updated: 2026-07-06
- Local data: ok
- Upstream repository: https://webpack.js.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

webpack is a JavaScript module bundler that builds a dependency graph from application entry points and emits static assets for browsers and other targets. It became one of the defining tools of the 2010s front-end build era because it treated JavaScript, CSS, images, and other assets as modules connected by loaders and plugins.

### Project history

The public `webpack/webpack` repository was created on March 10, 2012. GitHub's ReadME Project recounts that Tobias Koppers created webpack while working on a master's thesis for web applications, beginning as an optimizer born from practical need and growing through collaboration with users.

webpack's core model is a static dependency graph. The official concepts documentation explains that webpack starts from one or more entry points, follows the modules an application needs, and combines them into bundles. That model fit the rise of CommonJS, AMD, ES modules, transpilation, CSS preprocessors, and single-page applications.

webpack 4, released in February 2018, lowered the barrier for common use by making a configuration file optional for simple bundles while preserving deep configurability. webpack 5 followed on October 10, 2020, with a major release focused on long-term caching, removals of deprecated behavior, new web-platform features, and development-experience improvements.

### Adoption history

webpack spread because it solved several front-end problems at once: bundling JavaScript for browsers, code splitting for on-demand loading, asset processing through loaders, optimization through plugins, and a configurable build pipeline that frameworks could wrap. The ReadME Project characterized it as used by millions of developers around the world.

Its adoption was reinforced by the surrounding loader/plugin ecosystem and by framework tooling that hid or generated webpack configurations. Even as newer tools such as Rollup, Parcel, esbuild, Vite, and Turbopack changed developer expectations, webpack remained significant in long-lived applications, enterprise build systems, and projects relying on its mature plugin surface.

webpack 5's Module Federation gave the project a second adoption story beyond classic bundling. The webpack 5 release notes describe Module Federation as allowing multiple webpack builds to work together at runtime, enabling independently built code to behave like a connected module graph.

### How it is used

Developers use webpack by defining entry points, output settings, loaders, plugins, and mode-specific behavior, usually in `webpack.config.js` for non-trivial projects. Since webpack 4, simple projects can run without an explicit config, but package maintainers still recognize the config file as the center of serious webpack setups.

Common usage patterns include compiling modern JavaScript and TypeScript for browsers, bundling CSS and images with content hashes, splitting code by route, running development servers with hot updates, and generating optimized production assets. In larger systems, webpack configuration often becomes shared infrastructure owned by platform or build-tooling teams.

### Why package nerds care

webpack is package-nerd famous because it made `node_modules` and browser delivery collide at industrial scale. Its loader and plugin conventions shaped how npm packages advertise browser entry points, side effects, CSS handling, and asset behavior.

It is also a landmark in build-tool ergonomics: powerful enough to become the default, configurable enough to become notorious, and stable enough that newer tools are often explained by comparing what they simplify or replace from webpack-era workflows.

### Timeline

- 2012-03-10: Public GitHub repository `webpack/webpack` created.
- 2012: Tobias Koppers began webpack while working on a master's thesis for web applications.
- 2018-02: webpack 4 released; configuration became optional for simple bundles.
- 2020-10-10: webpack 5.0.0 released.
- 2020: webpack 5 introduced Module Federation for connecting independently built webpack builds at runtime.
- 2026-07-02: The GitHub API showed continued activity on the `webpack/webpack` repository.

### Related projects

- webpack is commonly discussed alongside Rollup, Parcel, Browserify, esbuild, Vite, Turbopack, Babel, TypeScript, and framework CLIs. Within webpack itself, webpack-cli, loaders, plugins, and Module Federation form much of the practical ecosystem.

### Sources

- <https://api.github.com/repos/webpack/webpack>
- <https://github.com/readme/podcast/masters-thesis-to-webpack>
- <https://github.com/webpack/webpack>
- <https://webpack.js.org/blog/2020-10-10-webpack-5-release/>
- <https://webpack.js.org/concepts/>


## Security Notes

No matching local secret-handling manifest was found for webpack. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: webpack.config.js
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** webpack
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - webpack - 5.97.1+dfsg1+~cs11.18.27-3: normalized package name match | Debian stable package indexes: webpack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Packs CommonJs/AMD modules for the browser | https://github.com/webpack/webpack
- Ubuntu apt - webpack - 5.76.1+dfsg1+~cs17.16.16-1: normalized package name match | Ubuntu 24.04 LTS package indexes: webpack from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Packs CommonJs/AMD modules for the browser | https://github.com/webpack/webpack
- Nix - webpack-cli: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/we/webpack-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [rollup](https://www.automicvault.com/pkg/brew/rollup/) - Shares av.db curated category or tags: build-tool, build-tools, bundler, cli, developer-tools.
- [vite](https://www.automicvault.com/pkg/brew/vite/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, frontend.
- [esbuild](https://www.automicvault.com/pkg/brew/esbuild/) - Shares av.db curated category or tags: build-tools, bundler, cli, developer-tools, javascript.
- [grunt-cli](https://www.automicvault.com/pkg/brew/grunt-cli/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, javascript.
- [ncc](https://www.automicvault.com/pkg/brew/ncc/) - Shares av.db curated category or tags: build-tools, bundler, cli, developer-tools, javascript.
- [pulp](https://www.automicvault.com/pkg/brew/pulp/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, javascript.
- [vite-plus](https://www.automicvault.com/pkg/brew/vite-plus/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, frontend, javascript.
- [yeet](https://www.automicvault.com/pkg/brew/yeet/) - Shares av.db curated category or tags: build-tool, build-tools, cli, developer-tools, javascript.
- [webpack](https://www.automicvault.com/pkg/npm/webpack/) - Same normalized package name appears in another local ecosystem. Shared terms: module, webpack.
- [webpack](https://www.automicvault.com/pkg/npm/webpack/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/webpack.yml](https://github.com/automic-vault/db/blob/main/combined/webpack.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
