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!

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.

avatartrivago's avatarag-grid's avatarcapitalone's avatar

Silver Sponsors

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

slack's avatarpeerigon's avatarangularclass's avatarhost-org's avataravatareggheadio's avatar5minreact_audio's avatar

Bronze Sponsors

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

dafeng's avatarsentry's avatarvtex's avatarfrontendmasters's avatarphotoeditorsdk's avatarxteam's avatarwebflow's avatarjaredpalmer's avatarsebastiansoft's avatarsynedra's avatarkentcdodds's avatarwaffleio's avatarrollbar's avataralligatorio's avatarzeit's avatarsarah_edo's avatarstickermule's avatarsoftwareplant's avataryvoschaap's avataraddyosmani's avatarclevertech's avatarmoduscreate's avatarhubspot's avataraccelebrate's avataricons8's avataralunny's avatarjoshuawiens's avatarrebuy's avataraviture's avataralgolia's avatarn26's avatarthetrainingadvisors's avatarproductreview's avatarep's avatarappfolio's avatarclayglobal's avatarreactnativetraining's avatarworkco's avatarArchitects.ioirvinwaldman's avatarchristianalfoni's avatardanabramov's avatarbenvinegar's avatarevgenyrodionov's avatarjjwonmin's avataridonethis'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.

kossnocorp's avatar
matteocng's avatar
ericclemmons's avatar
nicolaskroos's avatar
sjricc's avatar
mhpoin's avatar
esjacobs's avatar
kevinjames's avatar
darkokukovec's avatar
housecor's avatar
avatar
openlistings's avatar
jseidel's avatar
jeantimex's avatar
linkoivan's avatar
albertwchang's avatar
_seanclayton's avatar
gs's avatar
micropyramid's avatar
oliverzeigermann's avatar
adamrecvlohe's avatar
alexleung's avatar
alexliang's avatar
email's avatar
shaneckel's avatar
ragunathramaswamy's avatar
seanlarkin's avatar
reybango's avatar
dshills's avatar
sprjr's avatar
jorgeantunes's avatar
omt-tech's avatar
derk-jan's avatar
evgenijsafronov's avatar
rjun07a's avatar
gilbarbara's avatar
jkimbo's avatar
hello2's avatar
sayyupnl's avatar
usirin's avatar
rafalfilipek's avatar
joelchen's avatar
alex11's avatar
adamrackis's avatar
mark4's avatar
michaelvandiest's avatar
ching-tingwu's avatar
iamstarkov's avatar
felipedeamorim's avatar
tylermcginnis's avatar
stillconor's avatar
jeremyschlatter's avatar
simenbrekken's avatar
wellcco's avatar
damlemail's avatar
suhasdeshpande's avatar
danieltian's avatar
alejandrob's avatar
eliseumds1's avatar
eduardkyvenko's avatar
me17's avatar
memosanchez's avatar
threepointone's avatar
james3's avatar
christopherlloyd's avatar
karolisastrauka's avatar
ggrgur's avatar
dzello's avatar
travisarnold's avatar
jacobmischka's avatar
jacobpeddicord's avatar
nevenrodic's avatar
adamegesa's avatar
_sashashakun's avatar
loklaan's avatar
franciscobueno's avatar
aarontrostle's avatar
ajitsonlion's avatar
webpack1's avatar
simonkjellberg's avatar
bruno12mota's avatar
snolflake's avatar
jasonlaster11's avatar
eddyhernandez's avatar
shekadzianis's avatar
mejdinhlife's avatar
jslauthor's avatar
nicolaigrosser's avatar
tdmckinn's avatar
hellbeast92's avatar
_azayzel's avatar
tluenborg's avatar
pushred's avatar
jonasstromsodd's avatar
twobucks's avatar
taopaic's avatar
nickadeemus2002's avatar
ayastreb's avatar
iam's avatar
emarticor's avatar
jwebe0pe's avatar
cfreemancode's avatar
arthurstolyar's avatar
deanpogni's avatar
marcusnielsen's avatar
jzelez's avatar
silvenon's avatar
frenchtoastrllc's avatar
aerohitk's avatar
gaelmarziou's avatar
marknv1991's avatar
ebaranovdev's avatar
parkerbond's avatar
zemgalis's avatar
danjasnowski's avatar
claudiordgz's avatar
sumandna's avatar
dominikrodler's avatar
markusdrake's avatar
v7rulnik's avatar
andreypopp's avatar
webdesserts's avatar
pavelkornev's avatar
kurtiskemple's avatar
kuma's avatar
aripalo's avatar
keithito's avatar
andreicek's avatar
manuelbieh's avatar
bentlegen's avatar
richardworsfold's avatar
philippeleger's avatar
nathanhunzaker's avatar
ameyakoshti's avatar
colinwrenca's avatar
mrjoelkemp's avatar
kevin's avatar
blade0r's avatar
jan-kantypawelski's avatar
martinkammersberger's avatar
kevinmaes's avatar
kennethbrubaker's avatar
guilhermerodrigues's avatar
kostasmanionis's avatar
danieltreasure's avatar
Rafachon's avatar
tranvu's avatar
oieduardorabelo's avatar
jakewilliams's avatar
davidjungst's avatar
mukeshsoni's avatar
giovanni0918's avatar
rude's avatar
ridermansb's avatar
jlgeering16's avatar
aarongodin's avatar
jreem's avatar
selcukkiraz's avatar
kanitkornk's avatar
pruett's avatar
mpalmer_'s avatar
rexxars's avatar
gregvenech's avatar
santerihiltunen's avatar
bhargavponnapalli's avatar
craigdoremus's avatar
pheuter's avatar
sergeysharov's avatar
endel's avatar
harunhasdal's avatar
darrenscerri's avatar
karannijhawan's avatar
hozefaj's avatar
leonidasesteban's avatar
sboulade's avatar
arturkulig's avatar
benmccormick's avatar
dmh's avatar
corjen's avatar
miclo's avatar
rauban's avatar
xiplias's avatar
jsdotcr's avatar
carlosepp's avatar
markthethomas's avatar
morrelljeremy's avatar
molokovev's avatar
getbyteswag's avatar
alexmost1989's avatar
relekang's avatar
gabeldeluxe's avatar
reznord's avatar
wrumyl's avatar
pepibumur's avatar
knovour's avatar
info17's avatar
423300's avatar
viestursteivans's avatar
hello6's avatar
timberio's avatar
andrewbrown's avatar
timgriesser's avatar
calesce's avatar
mikeauclair's avatar
psulek's avatar
jeevanpalakurty's avatar
ngt_consulting's avatar
kaven276's avatar
josemaenzo's avatar
mikejoyce's avatar
krofdrakula's avatar
joewoojin's avatar
arturptaszek's avatar
marklozano's avatar
zward84's avatar
13web-avenue's avatar
a's avatar
chris's avatar
geoyws's avatar
code's avatar
andreaskeller's avatar
ddwag1's avatar
johan's avatar
musito's avatar
fravic's avatar
timoshenkoevgeny's avatar
mail6's avatar
ryandrewjohnson's avatar
lukeeeebennettplus's avatar
genechulkov's avatar
erichfeng's avatar
spjulien's avatar
happylinks's avatar
rosskaff's avatar
radojesrb's avatar
zjammal's avatar
altruity's avatar
kevinortman's avatar
spentacular's avatar
yinanfang's avatar
zhaojunbest's avatar
scisdahl's avatar
ojkelly's avatar
mpjme's avatar
aseem's avatar
jorgecuadrafueyo's avatar
manatsawin's avatar
sean1's avatar
alejandroortiz's avatar
sebastiandedeyne's avatar
danillops's avatar
gavinmogan's avatar
mattwelke's avatar
webpack2's avatar
renatodex's avatar
hugufc's avatar
kbrabrand's avatar
mail's avatar
patrickarminio's avatar
vladkosinov's avatar
left_pad's avatar
me6's avatar
joseluis_q's avatar
mattclarke's avatar
julianvmodesto's avatar
joanllenasmaso's avatar
jasonkelly6's avatar
ericstumper's avatar
coderliang's avatar
michalhantl's avatar
panutat's avatar
georgiowan's avatar
danez's avatar
saravieira's avatar
lukamaljic's avatar
andreykvital's avatar
ganjianwei's avatar
restuta's avatar
zangrafx's avatar
matiasfh's avatar
rene's avatar
heejongahn's avatar
rpkaper's avatar
hakimelek's avatar
dgrebb's avatar
osiegemund's avatar
givemedeals's avatar
me7's avatar
marioestrada's avatar
maarten's avatar
perrypoon's avatar
tamouse1's avatar
vvoyer's avatar
sergiodxa's avatar
matthewerker's avatar
elexd3v's avatar
patrick's avatar
ivanzusko's avatar
jiyinyiyong's avatar
kkencom's avatar
lukepage's avatar
userdima's avatar
chkal's avatar
rchanou's avatar
rpgmorpheus's avatar
alexeyraspopov's avatar
stgeass's avatar
ivan1's avatar
andrewrota's avatar
restrry's avatar
andreychev's avatar
hey1's avatar
benimnetz's avatar
pedromsluz's avatar
avaly's avatar
mirceadinoiu's avatar
maiis's avatar
mashaal's avatar
tadejafirman's avatar
mindfulgeek's avatar
zhulongzheng's avatar
timrbula's avatar
poke5464's avatar
jbkimelman's avatar
eriktfox's avatar
antonalexandrenok's avatar
15jzhang's avatar
mattdionis's avatar
vsevolodokhrin's avatar
xdamman's avatar
peacengara's avatar
dmitrymatveevnz's avatar
michaellebas's avatar
proza's avatar
tatsuyanakano's avatar
christianmatsoukis's avatar
oliviercombe's avatar
mohammadumairk's avatar
maximprocopenco's avatar
thomasrandolph's avatar
ufoqhmdt's avatar
nirgalon's avatar
lorenzosicilia's avatar
dealfy's avatar
jdinhlife's avatar
aga5tya's avatar
kevinclement's avatar
fo's avatar
andreykravtsov's avatar
anriasaturov's avatar
dinakartumu's avatar
patrickneschkudla's avatar
frooeyzanny's avatar
gevmarlen's avatar
me21's avatar
timbergus's avatar
nalekberov's avatar
abarghoud's avatar
eliotik's avatar
smiki-tky's avatar
kirill_shevch's avatar
webpack3's avatar
danawoodman's avatar
tublitzed's avatar
josh's avatar
viliamelischer's avatar
bnayazil's avatar
sarah's avatar
kazupooot's avatar
lehoanganh25991's avatar
surajpoddar16's avatar
wangwusan's avatar
alexchen504's avatar
niran's avatar
kushalpandya's avatar
moritzsattler's avatar
nathanwalker's avatar
kiemhd's avatar
eduardo's avatar
jwbobbink's avatar
riyadhalnur's avatar
hstanleycrow's avatar
jm3's avatar
cdelatorref's avatar
umcsdon's avatar
skillflow's avatar
angular's avatar