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.

AMP Project's avatarMixmax's avatarCharlie WettlauferAdam Eury's avatarIntreba BVKen Colton's avatarRon McCranie's avatarDavidson Fellipe多会's avatarCharles Pinnix's avatarBiohackers Lab'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 avatarTipe's avatarFacebook Open Source's avatarWebflow's avataregghead.io's avatarPeerigon's avatarKeyCDN's avatar上线了's avatarGoogle Angular's avatarSentry.io's avatarAirbnb's avatar5 minutes of React podcast's avatar

Bronze Sponsors

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

X-Team's avatarPhotoEditorSDK's avatarFrontend Masters's avatarVTEX's avatarJared Palmer's avatarAddy Osmani's avatarKent C. Dodds's avatarWaffle.io's avatarAlligator.io's avatarSticker Mule's avatarSebastian Software GmbH's avatarN26's avatarAccelebrate's avatarHubSpot's avatarIcons8's avatarsynedra IT GmbH's avatarZEIT's avatarRollbar's avatarSarah Drasner's avatarAndrew Lunny's avatarYvo Schaap's avatarSoftwarePlant's avatarAppfolio's avatarEsben Petersen's avatarProductReview.com.au's avatarJoshua Wiens's avatarModus Create's avatarClevertech's avatarclay's avatarThreadless ShopThe Training Advisors's avatarJetRuby Agency's avatarAMP Project'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 avatarEvgeny Rodionov's avatarI Done This's avatar

Backers