Description
webpack is a module bundler for JavaScript projects. It starts from an entry point, such as an HTML page or a script, follows every import and reference, and packages the modules and assets into optimized output for browsers. It is also used with Node.js, Deno, Bun and other environments. Beyond JavaScript, it can transform and bundle CSS, HTML, WebAssembly and other resources. The site's example shows a page with a module script and a stylesheet being bundled, with the URLs in the output rewritten automatically. To start, you install webpack and webpack-cli with npm as dev dependencies, write your code, and add a webpack.config.js that points at the entry page. Running it produces the bundled files in a dist folder. The documentation is available in English, Chinese and Korean. webpack is open source, its code and releases are on GitHub, and the project is supported by sponsors and backers.…
Highlights
- Bundles JavaScript, CSS, HTML, WebAssembly and other assets
- Starts from an HTML page or a script as its entry point
- Rewrites asset URLs in the output automatically
- Works in browsers, Node.js, Deno and Bun
- Open source with documentation in three languages
Ratings & Reviews
No ratings yet
Be the first to rate Webpack.
People also visit
Webpack FAQ
What is webpack?
webpack is a module bundler. It takes your JavaScript and other assets, follows their imports, and packages them into output that browsers and other runtimes can load.
How do I install it?
Run npm install --save-dev webpack webpack-cli, add a webpack.config.js that points at your entry file, then run it to create the bundled output.
Can it bundle more than JavaScript?
Yes. The site says webpack can transform and bundle many kinds of resources, and its example bundles a CSS file and an HTML page.
Where does it run?
The site says webpack targets browsers, Node.js, Deno, Bun and other environments.
Is webpack open source?
Yes. The code and releases are on GitHub, and the project is funded by sponsors and backers.
What are the best Webpack alternatives?
Popular alternatives to Webpack include esbuild, bundle and rollup.js. See all Webpack alternatives



