webpack
webpack.js.org
- Free plan
- Web
- API
- Self-hosted
What webpack is
webpack is a static module bundler for modern JavaScript applications. It builds a dependency graph and combines modules into bundles, with code splitting to let parts of an application load on demand. Built-in support covers JavaScript, JSON, WebAssembly, CSS, and HTML. Loaders can transform source files, such as compiling Sass to CSS or TypeScript to JavaScript, while plugins can modify the build process through compilation lifecycle hooks. ModuleFederationPlugin lets independently built applications share modules at runtime. Since version 4.0.0, webpack can be used without a configuration file, though it remains configurable. It provides CLI, Node API, loader, and plugin interfaces, and its integration documentation covers tools including Browserify, Brunch, Grunt, Gulp, Mocha, and Karma. The project recommends local npm installation with a fresh Node.js installation; command-line use from webpack v4 onward also requires webpack-cli. The software is free under the MIT license.
Who it suits
webpack suits developers building JavaScript applications who need to bundle modules, transform source files, or load application parts on demand. Its extensibility is useful for teams configuring build processes through loaders and plugins.
Good to know, and what to watch
- Code splitting can load application parts on demand.
- Loaders transform Sass and TypeScript sources.
- Plugins can access compilation lifecycle hooks.
- Module Federation shares modules at runtime.
- No configuration file is required since version 4.0.0.
- Command-line use from v4 onward needs webpack-cli.
- CSP is not enabled by default.
- Native CSS and HTML support are experimental.
- Global installation is not recommended.
Plans
Every plan and priceOpen-source webpack
Free plan
The verdict
webpack provides bundling, code splitting, and extension points for configuring a JavaScript build. It is free and flexible, but its low-level nature and installation requirements matter for newcomers.
What the maker publishes
- Built-in modules
- Webpack understands JavaScript, JSON, WebAssembly, CSS and HTML through built-in support. source
- Code splitting
- Webpack supports code splitting so parts of an application can load on demand. source
- Configuration
- Since version 4.0.0, webpack does not require a configuration file, although it remains highly configurable. source
- Experimental features
- Native CSS and Native HTML support are documented as experimental features. source
- 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. source
- Integrations
- Official integrations documentation covers Browserify, Brunch, Grunt, Gulp, Mocha and Karma. source
- Interfaces
- Webpack provides CLI, Node API, loader and plugin interfaces for configuring and extending compilation. source
- Loaders
- Loaders transform source files, including compiling Sass to CSS and TypeScript to JavaScript. source
- Module Federation
- The built-in ModuleFederationPlugin shares modules between independently built applications at runtime. source
- Notable limitation
- Global installation is not recommended because it locks projects to one webpack version and can fail when projects require different versions. source
- Plugins
- Plugins can customize the build process and access the compilation lifecycle through hooks. source
- Project maintenance
- The webpack repository is maintained by its Core Working Group and most contributors do the open-source work in their free time. source
- Security
- Webpack can add nonces to loaded scripts and supports Trusted Types for dynamically constructed scripts, but CSP is not enabled by default. source
- 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. source
- What it does
- Webpack is a static module bundler for modern JavaScript applications that builds a dependency graph and combines modules into bundles. source
Checked against the maker's pages on 30 Sept 2026.