bundle your
assets scripts

dependency bundling graphic

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.

KeyCDN's avatarFreegames66.com's avatarEirik Birkeland's avatarCucumber LimitedPrince Bechani's avatar

Platinum Sponsors

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

Gold Sponsors

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

trivago's avatarSegment's avatarag-Grid'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.io's avatarKeyCDN's avataregghead.io's avatarPeerigon's avatarGoogle Angular's avatar上线了's avatarWebflow's avatar5 minutes of React podcast's avatarFacebook Open Source's avatar

Bronze Sponsors

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

Sentry.io's avatarVTEX's avatarFrontend Masters's avatarX-Team's avatarPhotoEditorSDK's avatarJared Palmer's avatarSebastian Software GmbH's avatarKent C. Dodds's avatarWaffle.io's avatarAlligator.io's avatarAddy Osmani's avatarZEIT's avatarAirbnb's avatarRollbar's avatarSarah Drasner's avatarSticker Mule's avatarsynedra IT GmbH's avatarHubSpot's avatarAccelebrate's avatarYvo Schaap's avatarIcons8's avatarSoftwarePlant's avatarAndrew Lunny's avatarN26's avatarModus Create's avatarClevertech's avatarJoshua Wiens's avatarAppfolio's avatarThe Training Advisors's avatarProductReview.com.au's avatarEsben Petersen's avatarclay's avatarAviture Inc.'s avatarCerner Engineering 's avatarreBuy's avatarAlgolia's avatarThreadless ShopIrvin Waldman's avatarChristian Alfoni's avatarDan Abramov's avatarWork & Co's avatarJetRuby Agency's avatarArchitects.ioReact Native Training's avatarBen Vinegar's avatarWonmin's avatarI Done This's avatarEvgeny Rodionov'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.

Sasha Koss's avatar
Matteo's avatar
Eric Clemmons's avatar
Nicolas Roos's avatar
Chris Lloyd's avatar
Darko Kukovec's avatar
Evan Scott's avatar
Kevin James's avatar
Cory House's avatar
Steve Ricciardelli's avatar
Botika's avatar
Davin Hills's avatar
david8
MoonMail's avatar
Alex Liang's avatar
Open Listings's avatar
Ragunath Ramaswamy's avatar
Greg Sadetsky's avatar
Oliver Zeigermann's avatar
Yong Su's avatar
Shane Eckel's avatar
Sean Clayton's avatar
MicroPyramid's avatar
Albert Chang's avatar
Jon Seidel's avatar
Adam Recvlohe's avatar
Rob Kielty's avatar
Alex Leung's avatar
spalger's avatar
Derk-Jan Karrenbeld @SleeplessByte's avatar
OMT Technologies, Inc.'s avatar
Arjun Sarode's avatar
Sean Larkin's avatar
Say Yup's avatar
Adam's avatar
Jorge Antunes's avatar
Yevgen Safronov's avatar
Stephen R's avatar
Rey Bango's avatar
Lochlan Bunn's avatar
Matt lewis's avatar
Mike Murry's avatar
Umut Sirin's avatar
Rafał Filipek's avatar
Karolis Astrauka's avatar
Jonathan Kim's avatar
Eliseu Monar's avatar
Conor Hastings's avatar
Mark van den Brink's avatar
Tyler McGinnis's avatar
Michael Van Diest's avatar
Vladimir Starkov's avatar
Jeremy Schlatter's avatar
Simen Brekken's avatar
Gil Barbara's avatar
Joel Chen's avatar
Eduard Kyvenko's avatar
TaopaiC Tao's avatar
Chris Villanueva's avatar
Anatoliy Yastreb's avatar
Shiva Nandan's avatar
dev_to
ngAtl Conf's avatar
Emilio Martinez-Cordero's avatar
Johannes Weber's avatar
Denny Schuldt's avatar
Chris Freeman's avatar
Alexander Wunschik's avatar
Felipe Amorim's avatar
Travis Arnold's avatar
Suhas Deshpande's avatar
Jacob Peddicord's avatar
Carlos Guimaraes's avatar
Neven Rodić's avatar
Robert Fruchtman
Adam Egesa's avatar
Francisco Olmedo's avatar
Jacob Mischka's avatar
Aaron Trostle's avatar
Ajit Singh's avatar
Ben Cao's avatar
Ching-Ting Wu's avatar
Sijie Tian's avatar
Wellington Soares's avatar
Samir Damle's avatar
Alexander Shakun's avatar
Dzianis Sheka 's avatar
Leonard Souza's avatar
Nicolai Pascal Großer's avatar
Tirell's avatar
александр староверов's avatar
Thorsten Lünborg's avatar
Eric Lanehart's avatar
Jonas Strømsodd's avatar
Guillermo Sanchez's avatar
Suman Bharadwaj's avatar
drdla's avatar
Mark Drake's avatar
Valentin Semirulnik's avatar
Sunil Pai's avatar
James Cham's avatar
Freegames66.com's avatar
Grgur Grisogono's avatar
Josh Dzielak's avatar
Jurica Železnjak's avatar
Alejandro Brozzo's avatar
Parker Bond's avatar
Jason Laster's avatar
paulhiers
Simon Kjellberg's avatar
Rohit Kumar's avatar
Eugene Baranov's avatar
Bruno Mota's avatar
French Toasters LLC's avatar
Josh Lavely's avatar
Knovour Zheng's avatar
JD's avatar
Richard's avatar
Jonathan Soifer
谢彪's avatar
Two Bucks's avatar
Eddy Hernandez's avatar
Marcus Nielsen's avatar
Dean Pogni's avatar
Artur Stolear's avatar
Matija Marohnić's avatar
Kewei Ma's avatar
Dan J's avatar
Gaël Marziou's avatar
Kurtis Kemple's avatar
Eugene Molokov's avatar
Corjen's avatar
Zachary Origitano's avatar
Michael Loughry's avatar
Claudio Rodriguez's avatar
José Diaz Seng's avatar
Mark Thomas's avatar
jules
Jeremy Morrell's avatar
Kevin Ball's avatar
Pavel Kornev's avatar
Jordi Teddy's avatar
Alexander Mostovenko's avatar
Rolf Lekang's avatar
Oliver's avatar
Vladimir Z's avatar
Martin Fischer's avatar
Andrey Popp's avatar
Michael Mullins's avatar
Jamie Athanassakis
Maris Zemgalis's avatar
manuelbieh's avatar
Mukesh Soni's avatar
Refael Dakar's avatar
Guilherme Rodrigues's avatar
Jake Day's avatar
David Jungst's avatar
Daniel Treasure's avatar
kuma's avatar
Jonathan Reem's avatar
Matt Palmer's avatar
Selçuk Kiraz's avatar
Rude Ayelo's avatar
Vu Tran's avatar
Jean-Luc Geering's avatar
Aaron Godin's avatar
Espen Hovlandsdal's avatar
Giovanni Orlando's avatar
Kanitkorn Sujautra's avatar
Ari Palo's avatar
Keith Ito's avatar
Kenneth Brubaker's avatar
Eduardo Rabelo's avatar
Greg Venech's avatar
Riderman De Sousa Barbosa's avatar
Jan-Kanty Pawelski's avatar
Martin Kammersberger's avatar
Ben Vinegar's avatar
Richard Worsfold's avatar
Phil-lgr's avatar
Nathan Hunzaker's avatar
modulom
Ameya Koshti's avatar
Colin Wren's avatar
Ryan Graham's avatar
scottadamsmith
Kevin Scheffelmeier's avatar
Carlos Pérezpriego's avatar
Brandon Pierce's avatar
Michiel Westerbeek's avatar
Ross Kaffenberger's avatar
Brainly's avatar
Eirik Birkeland's avatar
Joel Kemp's avatar
Andrei Zvonimir Crnković's avatar
Kevin Maes's avatar
Timber.io's avatar
Craig Doremus's avatar
Darren Scerri's avatar
Hozefa Jodiawalla's avatar
Kevin Pruett's avatar
Kostas Manionis's avatar
Endel Dreyer's avatar
Harun Hasdal's avatar
Artur Ptaszek's avatar
Karan Nijhawan's avatar
Tim Griesser's avatar
Cale Newman's avatar
meyer
Mike Auclair's avatar
Peter Šulek's avatar
Jeevan Palakurty's avatar
李勇's avatar
Mike Joyce's avatar
Lagged's avatar
Sergey Sharov's avatar
Andy Brown's avatar
Santeri Hiltunen's avatar
Leonidas Esteban's avatar
Mark Lozano's avatar
Robert Borg's avatar
Andi Semler's avatar
Artur Kulig's avatar
Josema EnZo's avatar
Klemen Slavic's avatar
13web's avatar
Alexander Wunschik's avatar
Zack Ward's avatar
Ryan Johnson's avatar
Adam Howard's avatar
Chris Williams's avatar
Sylvain's avatar
Benjamin Geese's avatar
Andreas Keller's avatar
Dylan Byth's avatar
Ben McCormick's avatar
Johan Wendelstam's avatar
Ready Chi's avatar
Dexter Haslem's avatar
Davison Long's avatar
Anders Hansen's avatar
Rocco Curcio's avatar
Tom Liu's avatar
Anup's avatar
Vladimir Kalinichev's avatar
Sam Julien's avatar
Reinier Kaper's avatar
Dan Grebb's avatar
Pedro Piñera Buendía's avatar
Oliver's avatar
GiveMeDeals's avatar
jdinhify's avatar
Maxflow BVBA (BE 0550.758.377)
Bhargav Ponnapalli's avatar
Oliver Wehn's avatar
Viesturs Teivāns's avatar
Mark Fayngersh's avatar
Khiet Vo's avatar
Steve McPherson
Spenser Isdahl's avatar
Yinan Fang's avatar
zhaojun's avatar
Samir Alajmovic's avatar
G P
Woojin Joe's avatar
George Yong's avatar
Jorge Cuadra's avatar
Andrey Koperskiy's avatar
Evgeny Timoshenko's avatar
Fravic's avatar
Gavin Mogan's avatar
Matthew Welke's avatar
Mustafa Rashid's avatar
Hugo Freitas's avatar
Dano Alexander's avatar
Kevin Ortman's avatar
Eric Feng's avatar
Dealfy.co.uk's avatar
Kevin Clement's avatar
DomaiNesia's avatar
Ziad Jammal's avatar
Dusan Radojevic's avatar
Luke Bennett's avatar
Spencer Hamm's avatar
Gene Chulkov's avatar
Andrey Knupp Vital's avatar
Alon David's avatar
Restuta's avatar
http://kaspertontti.fi's avatar
Sara Vieira's avatar
Owen Kelly's avatar
Mattias Johansson's avatar
Aseem Sood's avatar
Luka Maljic's avatar
Manatsawin Hanmongkolchai's avatar
Moritz Mahringer's avatar
Sean Matheson's avatar
Alejandro Ortiz's avatar
Kristoffer Brabrand's avatar
Dani Llops's avatar
Renato Alves's avatar
Luís Fontes's avatar
Jiyin Yiyong's avatar
加藤賢太's avatar
omar mashaal's avatar
Dmitry Kabak's avatar
Christian Kaltepoth's avatar
Ronald ChanOu's avatar
Viktor Hubert's avatar
Alexey Raspopov's avatar
александр темный's avatar
Ivan Lagunovsky's avatar
Andrew Rota's avatar
Restrry Mike's avatar
Philipp Andreychev's avatar
Bulan's avatar
Alexander Kozhevin's avatar
Benjamin Geese's avatar
Pedro Luz's avatar
Valentin Agachi's avatar
Ferdinand Salis-Samaden's avatar
Patrick Arminio's avatar
Vlad Kosinov's avatar
Sebastian De Deyne's avatar
Henry Zhu's avatar
Tamouse Temple's avatar
Mario Estrada's avatar
Jose Quintana's avatar
Matt Clarke's avatar
Julian Modesto's avatar
Joan Llenas's avatar
Jason Kelly's avatar
Eric Stumper's avatar
Snow Liang's avatar
Michal Hantl's avatar
Pat Khunachak's avatar
Georgio Wan's avatar
Daniel Tschinder's avatar
Krzysztof Matysiak's avatar
Wen Tian Zhang's avatar
Matias Arellano's avatar
Longzheng Zhu's avatar
Timothy Bula's avatar
Rene Herrmann's avatar
Ginhing Lee's avatar
Jeremia Kimelman's avatar
Erik Fox's avatar
안희종's avatar
Anton Alexandrenok's avatar
Jack Zhang's avatar
Matt Dionis's avatar
Malek Hakim's avatar
Mitchell Gates's avatar
Cucumber Limited
Jian Wei Gan's avatar
Maarten Tibau's avatar
lei
Perry Poon's avatar
Yanagi Motonari
Luke Page's avatar
Matthew Erker's avatar
Alexander Kaiser's avatar
Patrick Collison's avatar
Ivan Zusko's avatar
Alexander Pustomelnyk's avatar
Evgeny Samsonov's avatar
Giorgio Natili's avatar
Gustavo Muñoz's avatar
Mircea Dinoiu's avatar
Emmanuel Vuigner's avatar
Sergio Xalambrí's avatar
Vincent Voyer's avatar
Hongmin Qiao's avatar
WenmingTang's avatar
Daniel Arthur Gallagher's avatar
Alex Chen's avatar
Drathal's avatar
Joe Palladino's avatar
Cassio Cardoso's avatar
Tadeja Firman's avatar
Vsevolod Okhrin's avatar
Peace Ngara's avatar
Xavier Damman's avatar
Michael Lebas's avatar
Patrick Neschkudla's avatar
Nir Galon's avatar
Craig Nguyen
Patrick Roza's avatar
Tatsuya Nakano's avatar
Christian Matsoukis's avatar
Olivier Combe's avatar
Mohammad Umair Khan's avatar
Maxim Procopenco's avatar
Dani Klein
Thomas Randolph's avatar
Dmitry Matveev's avatar
Lorenzo Sicilia's avatar
aga5tya's avatar
admin6
Anri Asaturov's avatar
Dinakar Tumu's avatar
Andrey Kravtsov's avatar
Suraj Poddar's avatar
Anas Barghoud's avatar
Priou
Arti Villa
Ralph03's avatar
Jason Baciulis's avatar
Pitchayut Nipatdamrongkoun's avatar
Nabarun Bhowmick's avatar
Antonio Yee's avatar
Nurlan Alekberov's avatar
Marlen Gevorkyan's avatar
Daniel Jenkins's avatar
Bobbink - Ferienparkspecials's avatar
Kirill Shevchenko's avatar
Soichiro Miki's avatar
Niran Babalola's avatar
Moritz Sattler's avatar
Dana Woodman's avatar
Rachel Tublitz's avatar
Josh Manders's avatar
Viliam Elischer's avatar
Bnaya Zilberfarb's avatar
Sarah Lim's avatar
Kazuhito Higashioka's avatar
Anh Hoang's avatar
wusan's avatar
Jaap Lorier's avatar
Chris Nienhuis
Ryan Tallmadge's avatar
Brainly's avatar
Freegames66
Prince Bechani's avatar
Alexander Grigoriev
Kushal Pandya's avatar
Nathan Walker's avatar
Harold Crow's avatar
2x3's avatar
Kiem Hoang's avatar
John Manoogian's avatar
Riyadh Al Nur's avatar
Junjie Huang's avatar
SkillFlow's avatar
Carlos De La Torre Fregoso's avatar
Sk