bundle your
assets scripts

STATIC ASSETS .png .css .jpg .js MODULES WITH DEPENDENCIES .jpg .png .sass .sass .js .sass .cjs .hbs .js

Write your code

app.js

import bar from './bar';

bar();

bar.js

export default function bar() {
  //
}

Bundle with webpack

webpack.config.js

module.exports = {
  entry: './app.js',
  output: {
    filename: 'bundle.js'
  }
};

page.html

<html>
  <head>
    ...
  </head>
  <body>
    ...
    <script src="bundle.js"></script>
  </body>
</html>

Then run webpack on the command-line to create bundle.js.

It's that simple

Get Started quickly in our Guides section, or dig into the Concepts section for more high-level information on the core notions behind webpack.

Support the Team

Through contributions, donations, and sponsorship, you allow webpack to thrive. Your donations directly support office hours, continued enhancements, and most importantly, great documentation and learning material!

Latest Sponsors

The following persons/organizations made their first donation in the last 14 days.

Coinbase's avataranonymousCodePilot.aiSteveLucas Farías's avatarMatters's avatarPhil Plückthun's avatarMatt HargettDaniel O'Connor's avatarGraham Holborn's avataranonymousCody Chan's avatarNiel de la Rouviere's avatarAnton Moiseev's avatar

Platinum Sponsors

platinum sponsorsare those who have pledged $50,000 or more to webpack.

trivago's avatar

Gold Sponsors

gold sponsorsare those who have pledged $10,000 to $50,000 to webpack.

ag-Grid's avatarSegment's avatarAdobe's avatarCapital One's avatar

Silver Sponsors

silver sponsorsare those who have pledged $2,000 to $10,000 to webpack.

Slack's avatarFacebook Open Source's avatarTipe's avatarWebflow's avataregghead.io's avatarPeerigon's avatar上线了's avatarKeyCDN's avatarSentry.io's avatarGoogle Angular's avatarAirbnb's avatarAMP Project's avatar5 minutes of React podcast's avatar

Bronze Sponsors

bronze sponsorsare those who have pledged $200 to $2,000 to webpack.

PhotoEditorSDK's avatarVTEX's avatarAddy Osmani's avatarX-Team's avatarFrontend Masters's avatarKent C. Dodds's avatarRollbar's avatarN26's avatarWaffle.io's avatarAlligator.io's avatarJared Palmer's avatarSticker Mule's avatarSebastian Software GmbH's avatarHubSpot's avatarAccelebrate's avatarIcons8's avatarZEIT's avatarSarah Drasner's avatarsynedra IT GmbH's avatarThreadless ShopYvo Schaap's avatarProductReview.com.au's avatarAndrew Lunny's avatarEsben Petersen's avatarAppfolio's avatarSoftwarePlant's avatarJoshua Wiens's avatarclay's avatarClevertech's avatarModus Create's avatarThe Training Advisors's avatarJetRuby Agency's avatarCoinbase's avatarAlgolia's avatarreBuy's avatarAviture Inc.'s avatarCerner Engineering 's avatarChristian Alfoni's avatarDan Abramov's avatarIrvin Waldman's avatarReact Native Training's avatarArchitects.ioWork & Co's avatarBen Vinegar's avatarWonmin's avatarFred CarlsenMixmax's avatarI Done This's avatarEvgeny Rodionov's avatar

Backers