Sponsor webpack and get apparel from the official shop! All proceeds go to our open collective!

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

src/index.js

import bar from './bar';

bar();

src/bar.js

export default function bar() {
  //
}

Bundle with webpack

Without config or provide custom webpack.config.js

const path = require('path');

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  }
};

page.html

<!doctype html>
<html>
  <head>
    ...
  </head>
  <body>
    ...
    <script src="dist/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 (limited to the top 10).

uudetkasinot.com's avatarFederico Bertani's avatarLooping Doge's avatarGavin Lloyd's avatarTroy Gibb's avataranonymous's avatarDusan Trtica's avatarGlenn Bradford's avatarTicimax Bilişim Teknolojileri A.Ş's avatarKristine Robison'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 avatarAirbnb's avatarFacebook Open Source's avatarFrontend Masters's avatarCapital One's avatarAdobe's avatarCoinbase's avatarIndeed's avatar

Silver Sponsors

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

Webflow's avatarSlack's avatarAMP Project's avataregghead.io's avatarTipe's avatarThreadless Shop's avatarPeerigon's avatarN26's avatarZEIT's avatarRollbar's avatar上线了's avatarKeyCDN's avatarPhotoEditorSDK's avatarSentry.io's avatarAlligator.io's avatarGoogle Angular's avatarJared Palmer's avatarSticker Mule's avatarHubSpot's avatarAccelebrate's avatarFree Icons by Icons8's avatarPrincipal Financial Group's avatarWaffle.io's avatarKickstarter's avatar5 minutes of React podcast's avatarTeam Extension's avatarAppfolio's avatar

Bronze Sponsors

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

Kent C. Dodds's avatarclay's avatarTriplebyte's avatarBlockchain Training Alliance 's avatarAddy Osmani's avatarVTEX's avatarTrade Me's avatarX-Team's avatarSebastian Software GmbH's avatarAlgolia's avatarProductReview.com.au's avatarBCG Digital Ventures's avatarFire Stick Tricks's avatarOmega Media's avatarEsben Petersen's avatarsynedra IT GmbH's avatarSarah Drasner's avatarJoshua Wiens's avatarYvo Schaap's avatarAndrew Lunny's avatarbinary option Thailand's avatarVolare Systems's avatarSoftwarePlant's avatarRaygun's avatarClevertech's avatarModus Create's avatarDan Abramov's avatarIrvin Waldman's avatarStatus Hero's avatarJetRuby Agency's avatarThe Training Advisors's avatarCerner Engineering 's avatarAviture Inc.'s avatarFred Carlsen's avatarreBuy's avatarChristian Alfoni's avatarEven Stensberg's avatarTrueVendor's avatarMarcus Hiles's avatarEducative.io's avatarDontPayFull's avatarClaudio Rodriguez's avatarUudet Nettikasinot's avatarNya Casinon's avatarReact Native Training's avatarWork & Co's avatarArchitects.io's avatarBen Vinegar's avatarDarko Kukovec's avatarCory House's avatarJonathan Soifer's avatarCodePilot.ai's avatarAlex Liang's avatarWonmin's avatarJonathon Landon's avatarRagunath Ramaswamy's avatarRob Kielty's avatarDerk-Jan Karrenbeld @SleeplessByte's avatarAdam's avatarKarolis Astrauka's avatarCodeFirst's avatarEliseu Monar dos Santos's avatarAandelen Kopen's avatarHosted.nl's avatarVPS Server's avatarBettingFeber.se's avatarEmilio Martinez-Cordero's avatarChris Freeman's avatarMixmax's avatarJayshri Sing's avatarByteScout's avatarWonderProxy's avataruudetkasinot.com's avatarMike Murry's avatarEvgeny Rodionov's avatarTaopaiC Tao's avatarngAtl Conf's avatarI Done This's avatarShiva Nandan's avatar

Backers

The following Backers are individuals who have contributed various amounts of money in order to help support webpack. Every little bit helps, and we appreciate even the smallest contributions. This list shows 100 randomly chosen backers:

Davin Hills's avatar
Indexed's avatar
Joel Chen's avatar
Umut Sirin's avatar
david8's avatar
Ben Cao's avatar
Adam Recvlohe's avatar
mqklin's avatar
Matters's avatar
Dzianis Sheka 's avatar
Jorge Antunes's avatar
Dan Murray's avatar
Knoji's avatar
Gus Nordhielm's avatar
Albert Chang's avatar
Oliver Zeigermann's avatar
Brien Givens's avatar
Oliver's avatar
Reinier Kaper's avatar
Say Yup's avatar
Waiterio's avatar
DomaiNesia's avatar
Dealfy.co.uk's avatar
Yevgen Safronov's avatar
Gregory Nowakowski's avatar
José Diaz Seng's avatar
Alexander Wunschik's avatar
Jonathan Reem's avatar
Selçuk Kiraz's avatar
Espen Hovlandsdal's avatar
Kiyohito Kuwahara's avatar
Jean-Luc Geering's avatar
Tim Griesser's avatar
Kevin Killingsworth's avatar
paulhiers's avatar
meyer's avatar
Instant's avatar
Craig Rubino's avatar
Marcus Nielsen's avatar
Philipp Andreychev's avatar
Evgeny Samsonov's avatar
Priou's avatar
Jamie Athanassakis's avatar
Sambla AB's avatar
Prince Bechani's avatar
Maris Zemgalis's avatar
Noah Lemen's avatar
Eduardo Rabelo's avatar
Ari Palo's avatar
Jack Zhang's avatar
Biohackers Lab's avatar
Kevin Maes's avatar
Carlos Pérezpriego's avatar
Kostas Manionis's avatar
Matt Dionis's avatar
Tamouse Temple's avatar
Dexter Haslem's avatar
Dale Price's avatar
Bhargav Ponnapalli's avatar
Robert Borg's avatar
Ben McCormick's avatar
Spencer Prost's avatar
Naoki Endoh's avatar
Niel de la Rouviere's avatar
Oliver Lassen's avatar
anonymous's avatar
WenmingTang's avatar
Manatsawin Hanmongkolchai's avatar
Nickolay Marchenko's avatar
加藤賢太's avatar
Top Pfannen's avatar
Askfinancer's avatar
Alexander Kozhevin's avatar
Matan Kushner's avatar
Vlad Kosinov's avatar
Z Roofing & Waterproofing's avatar
Eric Steen's avatar
Sebastien K's avatar
Elegant Media's avatar
Kristine Robison's avatar
TheGamerStop's avatar
Joan Llenas's avatar
Dipo Alli's avatar
Steve's avatar
Joshua Baker's avatar
Andrea Unger's avatar
Talkcharge's avatar
Mircea Dinoiu's avatar
Nopeustesti's avatar
Therefore Interactive's avatar
Patrick Collison's avatar
Freespinsnodeposituk's avatar
IO Developer's avatar
Tatsuya Nakano's avatar
Anri Asaturov's avatar
Simon Stromberg's avatar
Simon Stromberg's avatar
Simon Stromberg's avatar
Simon Stromberg's avatar
Simon Stromberg's avatar