webpack
webpack.js.org
What it is
webpack is a free, open-source static module bundler for modern JavaScript applications. It builds a dependency graph and combines modules into bundles, with code splitting for on-demand loading. Built-in support covers JavaScript, JSON, WebAssembly, CSS and HTML. Loaders transform sources such as Sass into CSS or TypeScript into JavaScript, while plugins customize compilation through lifecycle hooks. ModuleFederationPlugin lets independently built applications share modules at runtime. Since version 4.0.0, webpack can run without a configuration file, although it remains highly configurable. Interfaces include the CLI, Node API, loader API and plugin API, and documentation covers integrations with Browserify, Brunch, Grunt, Gulp, Mocha and Karma. The project recommends local npm installation and a fresh Node.js installation; command-line use from webpack v4 onward also requires webpack-cli. The MIT-licensed software supports tree shaking and source maps. CSP is not enabled by default, and native CSS and HTML support are experimental.
Spec sheet
- What it does
- Webpack is a static module bundler for modern JavaScript applications that builds a dependency graph and combines modules into bundles.Read 30 Sep 2026 · webpack.js.org
- Integrations
- Official integrations documentation covers Browserify, Brunch, Grunt, Gulp, Mocha and Karma.Read 30 Sep 2026 · webpack.js.org
- Security
- Webpack can add nonces to loaded scripts and supports Trusted Types for dynamically constructed scripts, but CSP is not enabled by default.Read 30 Sep 2026 · webpack.js.org
- Built-in modules
- Webpack understands JavaScript, JSON, WebAssembly, CSS and HTML through built-in support.Read 30 Sep 2026 · webpack.js.org
- Code splitting
- Webpack supports code splitting so parts of an application can load on demand.Read 30 Sep 2026 · github.com
- Configuration
- Since version 4.0.0, webpack does not require a configuration file, although it remains highly configurable.Read 30 Sep 2026 · webpack.js.org
- Experimental features
- Native CSS and Native HTML support are documented as experimental features.Read 30 Sep 2026 · webpack.js.org
- Installation
- The project recommends local npm installation and requires a fresh Node.js installation, with webpack-cli additionally needed for command-line use from webpack v4 onward.Read 30 Sep 2026 · webpack.js.org
- Interfaces
- Webpack provides CLI, Node API, loader and plugin interfaces for configuring and extending compilation.Read 30 Sep 2026 · webpack.js.org
- Loaders
- Loaders transform source files, including compiling Sass to CSS and TypeScript to JavaScript.Read 30 Sep 2026 · webpack.js.org
- Module Federation
- The built-in ModuleFederationPlugin shares modules between independently built applications at runtime.Read 30 Sep 2026 · webpack.js.org
- Notable limitation
- Global installation is not recommended because it locks projects to one webpack version and can fail when projects require different versions.Read 30 Sep 2026 · webpack.js.org
- Plugins
- Plugins can customize the build process and access the compilation lifecycle through hooks.Read 30 Sep 2026 · webpack.js.org
- Project maintenance
- The webpack repository is maintained by its Core Working Group and most contributors do the open-source work in their free time.Read 30 Sep 2026 · github.com
- Support model
- The project describes webpack as a low-level tool, points beginners to its documentation, and directs bug reports and feature suggestions to GitHub issues.Read 30 Sep 2026 · github.com
Plans and prices
Strong points and limits
Strong points
- Free under the MIT license
- Built-in support for multiple web formats
- Extensible loader and plugin interfaces
- Runtime Module Federation
- Code splitting for on-demand loading
Limits
- Requires Node.js and usually webpack-cli
- Global installation is discouraged
- Native CSS and HTML support are experimental
- CSP is not enabled by default
Who it suits
It suits developers building JavaScript applications who need configurable bundling, loaders, plugins and split or federated modules.
Verdict
webpack provides a highly configurable toolchain for assembling modern web applications and extending their build process. Its broad interfaces and ecosystem support come with setup requirements and some experimental features.
Where Specifiction places it
- JavaScript Build Tools#23 of 277.3