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.

Airbnb's avatarThreadless Shopadmin6PriouChris Nienhuis

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 avatarPeerigon's avatarGoogle Angular's avataregghead.io's avatar上线了's avatar5 minutes of React podcast's avatar

Bronze Sponsors

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

Sentry.io's avatarWebflow's avatarFrontend Masters's avatarX-Team's avatarVTEX's avatarPhotoEditorSDK's avatarJared Palmer's avatarSebastian Software's avatarKent C. Dodds's avatarsynedra IT GmbH's avatarZEIT's avatarAlligator.io's avatarRollbar's avatarWaffle.io's avatarAddy Osmani's avatarSarah Drasner's avatarYvo Schaap's avatarSticker Mule's avatarHubSpot's avatarAccelebrate's avatarSoftwarePlant's avatarIcons8's avatarModus Create's avatarClevertech's avatarAndrew Lunny's avatarN26's avatarJoshua Wiens's avatarThe Training Advisors's avatarreBuy's avatarEsben Petersen's avatarAppfolio's avatarCerner Engineering 's avatarAirbnb's avatarAlgolia's avatarAviture Inc.'s avatarProductReview.com.au's avatarThreadless Shopclay's avatarIrvin Waldman's avatarDan Abramov's avatarWork & Co's avatarReact Native Training's avatarArchitects.ioChristian Alfoni's avatarBen Vinegar's avatarWonmin's avatarEvgeny Rodionov's avatarIvan Linko's avatarI Done This'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
Nicolas Roos's avatar
Eric Clemmons's avatar
Evan Scott's avatar
Kevin James's avatar
Darko Kukovec's avatar
Botika's avatar
Steve Ricciardelli's avatar
Cory House's avatar
MoonMail's avatar
david8
Open Listings's avatar
MicroPyramid's avatar
Oliver Zeigermann's avatar
Davin Hills's avatar
Yong Su's avatar
Chris Lloyd's avatar
Alex Liang's avatar
Sean Clayton's avatar
Jon Seidel's avatar
Albert Chang's avatar
Greg Sadetsky's avatar
Adam Recvlohe's avatar
Shane Eckel's avatar
Alex Leung's avatar
email's avatar
Ragunath Ramaswamy's avatar
Derk-Jan Karrenbeld @SleeplessByte's avatar
Arjun Sarode's avatar
Sean Larkin's avatar
Rob Kielty's avatar
OMT Technologies, Inc.'s avatar
Jorge Antunes's avatar
Stephen R's avatar
Yevgen Safronov's avatar
Rey Bango's avatar
Say Yup's avatar
Adam's avatar
Umut Sirin's avatar
Jonathan Kim's avatar
Lochlan Bunn's avatar
Matt lewis's avatar
Eliseu Monar's avatar
Simen Brekken's avatar
Karolis Astrauka'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
Eduard Kyvenko's avatar
Mike Murry's avatar
Felipe Amorim's avatar
Alexander Wunschik's avatar
Joel Chen's avatar
Rafał Filipek's avatar
Gil Barbara's avatar
Travis Arnold's avatar
Suhas Deshpande's avatar
Ching-Ting Wu's avatar
Wellington Soares's avatar
Samir Damle's avatar
ngAtl Conf's avatar
Jacob Peddicord's avatar
Carlos Guimaraes's avatar
Aaron Trostle's avatar
Francisco Olmedo's avatar
Jacob Mischka's avatar
TaopaiC Tao's avatar
Chris Villanueva's avatar
Anatoliy Yastreb's avatar
Shiva Nandan's avatar
dev_to
Alejandro Brozzo's avatar
Emilio Martinez-Cordero's avatar
Johannes Weber's avatar
Denny Schuldt's avatar
Chris Freeman's avatar
Guillermo Sanchez's avatar
Sunil Pai's avatar
James Cham's avatar
Josh Dzielak's avatar
Sijie Tian's avatar
Ben Cao's avatar
Grgur Grisogono's avatar
Ajit Singh's avatar
Robert Fruchtman
paulhiers
Adam Egesa'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
Simon Kjellberg's avatar
Bruno Mota's avatar
Jurica Železnjak's avatar
Neven Rodić's avatar
Jason Laster's avatar
Parker Bond's avatar
drdla's avatar
Rohit Kumar's avatar
French Toasters LLC's avatar
Eugene Baranov's avatar
Two Bucks's avatar
Suman Bharadwaj's avatar
JD's avatar
Mark Drake's avatar
Valentin Semirulnik's avatar
Artur Stolear's avatar
Dean Pogni's avatar
Marcus Nielsen's avatar
Josh Lavely's avatar
Eddy Hernandez's avatar
Matija Marohnić's avatar
Kewei Ma's avatar
Dan J's avatar
Gaël Marziou's avatar
Kurtis Kemple's avatar
Maris Zemgalis's avatar
Jordi Teddy's avatar
Knovour Zheng's avatar
Richard's avatar
aaa
谢彪's avatar
Claudio Rodriguez's avatar
Jamie Athanassakis
Pavel Kornev's avatar
Andrey Popp's avatar
Michael Mullins's avatar
kuma's avatar
manuelbieh's avatar
Kenneth Brubaker's avatar
Mukesh Soni's avatar
Ari Palo's avatar
Keith Ito's avatar
Eduardo Rabelo's avatar
Jake Day's avatar
David Jungst's avatar
Daniel Treasure's avatar
Carlos Pérezpriego's avatar
Martin Kammersberger's avatar
Richard Worsfold's avatar
Phil-lgr's avatar
Jan-Kanty Pawelski's avatar
modulom
Ameya Koshti's avatar
Colin Wren's avatar
Ryan Graham's avatar
scottadamsmith
Kevin Scheffelmeier's avatar
Corjen's avatar
Zachary Origitano's avatar
Michael Loughry's avatar
José Diaz Seng's avatar
Ben Vinegar's avatar
Mark Thomas's avatar
jules
Jeremy Morrell's avatar
Kevin Ball's avatar
Eugene Molokov's avatar
Alexander Mostovenko's avatar
Rolf Lekang's avatar
Oliver's avatar
Vladimir Z's avatar
Martin Fischer's avatar
Kevin Maes's avatar
Andrei Zvonimir Crnković's avatar
Joel Kemp's avatar
Nathan Hunzaker's avatar
Vu Tran's avatar
Greg Venech's avatar
Espen Hovlandsdal's avatar
Matt Palmer's avatar
Selçuk Kiraz's avatar
Rude Ayelo's avatar
Riderman De Sousa Barbosa's avatar
Jean-Luc Geering's avatar
Aaron Godin's avatar
Jonathan Reem's avatar
Giovanni Orlando's avatar
Kanitkorn Sujautra's avatar
Kostas Manionis's avatar
Guilherme Rodrigues's avatar
Refael Dakar's avatar
Timber.io's avatar
Craig Doremus's avatar
Harun Hasdal's avatar
Darren Scerri's avatar
Karan Nijhawan's avatar
Hozefa Jodiawalla's avatar
Kevin Pruett's avatar
Santeri Hiltunen's avatar
Sergey Sharov's avatar
Endel Dreyer's avatar
Anders Hansen's avatar
Leonidas Esteban's avatar
Mark Lozano's avatar
Tim Griesser's avatar
Cale Newman's avatar
Sylvain's avatar
Artur Kulig's avatar
李勇's avatar
Josema EnZo's avatar
Mike Joyce's avatar
Klemen Slavic's avatar
Ben McCormick's avatar
Ready Chi's avatar
Dexter Haslem's avatar
Robert Borg's avatar
Andy Brown's avatar
Rocco Curcio's avatar
Tom Liu's avatar
Anup's avatar
Vladimir Kalinichev's avatar
Sam Julien's avatar
Brandon Pierce's avatar
Michiel Westerbeek's avatar
Ross Kaffenberger's avatar
Pedro Piñera Buendía's avatar
Bhargav Ponnapalli's avatar
Mark Fayngersh's avatar
Viesturs Teivāns's avatar
Artur Ptaszek's avatar
Oliver Wehn's avatar
Peter Šulek's avatar
Jeevan Palakurty's avatar
Andi Semler's avatar
Davison Long'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
Khiet Vo's avatar
George Yong's avatar
Benjamin Geese's avatar
Andreas Keller's avatar
Dylan Byth's avatar
Johan Wendelstam's avatar
G P
Woojin Joe's avatar
meyer
Mike Auclair's avatar
Spenser Isdahl's avatar
Jorge Cuadra's avatar
zhaojun's avatar
Samir Alajmovic's avatar
Mustafa Rashid's avatar
Fravic's avatar
Evgeny Timoshenko's avatar
Steve McPherson
Yinan Fang's avatar
Oliver's avatar
Hugo Freitas's avatar
Kevin Ortman's avatar
Eric Feng's avatar
Reinier Kaper's avatar
Dan Grebb's avatar
Gene Chulkov's avatar
GiveMeDeals's avatar
Spencer Hamm's avatar
Dano Alexander's avatar
Ziad Jammal's avatar
Dusan Radojevic's avatar
Luke Bennett's avatar
Matthew Welke's avatar
Andrey Koperskiy's avatar
Aseem Sood's avatar
Mattias Johansson's avatar
Owen Kelly's avatar
Gavin Mogan's avatar
Manatsawin Hanmongkolchai's avatar
Andrey Knupp Vital's avatar
Alejandro Ortiz's avatar
Sebastian De Deyne's avatar
Dani Llops's avatar
Renato Alves's avatar
Sara Vieira's avatar
Luís Fontes's avatar
Luka Maljic's avatar
Sean Matheson's avatar
Alon David's avatar
Restuta's avatar
Vlad Kosinov's avatar
Kristoffer Brabrand's avatar
Ferdinand Salis-Samaden's avatar
Patrick Arminio's avatar
Henry Zhu's avatar
Moritz Mahringer's avatar
Perry Poon's avatar
Jian Wei Gan'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
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
Krzysztof Matysiak's avatar
Wen Tian Zhang's avatar
Alexander Kozhevin's avatar
Matias Arellano's avatar
Benjamin Geese's avatar
Pedro Luz's avatar
Valentin Agachi's avatar
Rene Herrmann's avatar
안희종's avatar
Malek Hakim's avatar
Dealfy.co.uk's avatar
JD's avatar
Kevin Clement's avatar
DomaiNesia's avatar
Maarten Tibau's avatar
lei
Mario Estrada's avatar
Tamouse Temple's avatar
Matt Dionis's avatar
Sergio Xalambrí's avatar
Matthew Erker's avatar
Alexander Kaiser's avatar
Patrick Collison's avatar
Ivan Zusko's avatar
Longzheng Zhu's avatar
Timothy Bula's avatar
Ginhing Lee's avatar
Jeremia Kimelman's avatar
Erik Fox's avatar
Anton Alexandrenok's avatar
Jack Zhang's avatar
Yanagi Motonari
Luke Page's avatar
Emmanuel Vuigner's avatar
Vincent Voyer's avatar
Mircea Dinoiu's avatar
Peace Ngara's avatar
Joe Palladino's avatar
Alexander Pustomelnyk's avatar
Evgeny Samsonov's avatar
Hongmin Qiao's avatar
Gustavo Muñoz's avatar
Tadeja Firman's avatar
Xavier Damman's avatar
Vsevolod Okhrin's avatar
Giorgio Natili'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
Mitchell Gates's avatar
admin6
Anri Asaturov's avatar
Dinakar Tumu's avatar
Andrey Kravtsov's avatar
Suraj Poddar's avatar
Anas Barghoud's avatar
Alex Chen's avatar
Drathal's avatar
WenmingTang's avatar
Cassio Cardoso's avatar
Daniel Arthur Gallagher's avatar
Antonio Yee's avatar
Marlen Gevorkyan's avatar
Nurlan Alekberov'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
Jan-Willem Bobbink's avatar
Nabarun Bhowmick's avatar
Priou
Alexander Grigoriev
Kushal Pandya's avatar
Nathan Walker's avatar
Harold Crow's avatar
Jaap Lorier's avatar
Chris Nienhuis
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