Automic VaultAutomic Vault

brew

使用 Homebrew, apt, Nix 安装 webpack

查看 webpack 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install webpack

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install webpack

Debian stable package indexes · webpack · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#webpack-cli

nixpkgs package indexes · pkgs/by-name/we/webpack-cli/package.nix · 来源: api.github.com

概览

软件包摘要

Bundler for JavaScript and friends

命令和别名

  • webpack
  • webpack-cli

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 webpack 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
webpack.config.js

可执行文件

已安装的可执行文件

命令类型暴露范围备注
webpackcli全局可执行文件
webpack-clicli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本5.109.0
管理器更新时间2026-07-24
本地数据OK
上游not checked
检测到的最新版本未检测到

https://webpack.js.org/

安装元数据

软件包元数据

软件包键brew:webpack
版本5.109.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/webpack
主页https://webpack.js.org/
仓库https://github.com/webpack/webpack
上游文档https://webpack.js.org/concepts
许可证MIT
源码归档https://registry.npmjs.org/webpack/-/webpack-5.109.0.tgz
最后更新2026-07-24T22:00:09Z
Pulseupdated
依赖node
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namewebpack
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

webpack 5.97.1+dfsg1+~cs11.18.27-3

Packs CommonJs/AMD modules for the browser

https://github.com/webpack/webpack

sudo apt install webpack
  • Section: javascript
  • Architecture: all
  • Source Package: node-webpack
  • 31 依赖
  • 9 提供
  • normalized package name match
  • 匹配方式:Webpack
Debian stable package indexes · deb.debian.org · Debian stable package indexes: webpack from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

webpack 5.76.1+dfsg1+~cs17.16.16-1

Packs CommonJs/AMD modules for the browser

https://github.com/webpack/webpack

sudo apt install webpack
  • Section: universe/javascript
  • Architecture: all
  • Source Package: node-webpack
  • 30 依赖
  • 9 提供
  • normalized package name match
  • 匹配方式:Webpack
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: webpack from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Nix92%

webpack-cli

nix profile install nixpkgs#webpack-cli
  • installed executable or alias match
  • 匹配方式:Webpack Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/we/webpack-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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