webpack

(★ 65,971)

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

File Explorer

Showing a partial file list — download the zip above to see everything.

  • .coderabbit.yaml
  • .editorconfig
  • .gitattributes
  • .gitignore
  • .gitmodules
  • .istanbul.yml
  • .npmrc
  • .prettierignore
  • .prettierrc.js
  • _SETUP.md
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • codecov.yml
  • CONTRIBUTING.md
  • cspell.json
  • declarations.d.ts
  • declarations.test.d.ts
  • eslint.config.mjs
  • generate-types-config.js
  • GOVERNANCE.md
  • jest.config.js
  • LICENSE
  • module.d.ts
  • open-bot.yaml
  • package.json
  • README.md
  • TESTING_DOCS.md
  • WORKING_GROUP.md

# Installation Guide

node
Prerequisites

Setup Steps

npm install

Install project dependencies.

Key Commands

npm install --save-dev webpack

Install webpack as a dev dependency in the project.

yarn add webpack --dev

Add webpack as a dev dependency using yarn.

Supports all ES5-compliant browsers. A Promise polyfill may be required for import() and require.ensure().

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Showing a partial file list.

Release Timeline

Actively Maintained

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

npm install

View Details ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

yarn

View Details ▼

JavaScript and Node.js package manager alternative.

yarn global add {{module_name}}

Install a module globally:

yarn install

Install all dependencies referenced in the `package.json` file (the `install` is optional):

yarn add {{module_name}}@{{version}}

Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):

// repository documentation