Webpack

Open source

webpack is a module bundler that processes JavaScript, CSS, HTML, and other assets into optimized bundles for various environments, supporting code splitting and loaders.

Open-source alternative to

webpack.js.org
Webpack homepage screenshot
GitHub stars
66k
Last 30 days
-62(+0%)
Last commit
yesterday
Repository age
14 years
Version
v5.112.2
Licence
MIT
Self-hosted
Yes

About Webpack

webpack is a module bundler that takes many modules and packs them into a few bundled assets. It supports code splitting to load parts of an application on demand, and uses loaders to handle various module types including CommonJS, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, and custom formats.

The tool can bundle assets for browsers, Node.js, Deno, Bun, and other environments. It can parse HTML pages and bundle referenced assets without requiring loaders or plugins, and offers development and production modes with minification and source maps.

Key features

  • Bundles JavaScript, CSS, HTML, WebAssembly, and other assets
  • Code splitting for on-demand loading
  • Loaders for various module types
  • Built-in support for HTML and CSS
  • Development and production modes
  • Source maps for debugging

Good fit for

  • Bundling web application assets
  • Optimizing output for production
  • Migrating existing setups to built-in support
Tags
bundler
javascript
modules
assets
webpack

Webpack: questions and answers

What is Webpack used for?
webpack is a module bundler that processes JavaScript, CSS, HTML, and other assets into optimized bundles for various environments, supporting code splitting and loaders. It is a good fit for bundling web application assets, optimizing output for production and migrating existing setups to built-in support.
Is Webpack open source?
Yes. Webpack is open source under the MIT licence. Its source code is on GitHub at webpack/webpack and is written mainly in JavaScript.
Is Webpack free?
Yes. Webpack is open source, so the software itself is free to use.
Can I self-host Webpack?
Yes. Webpack can be self-hosted on your own server or infrastructure.
What is Webpack an alternative to?
Webpack is an open-source alternative to Patchwork. Other open-source alternatives to Patchwork include Turborepo, Lerna and ERPNext.
Is Webpack actively maintained?
Yes. The most recent commit to Webpack was on 12 November 2026, and the latest release is v5.112.2, published on 23 October 2026. The project has 66k stars on GitHub.

Open-source alternatives to Webpack

See all

SaaS alternatives to Webpack

See all