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.js';

bar();

src/bar.js

export default function bar() {
  //
}

Bundle It

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>
    <meta charset="utf-8" />
    ...
  </head>
  <body>
    ...
    <script src="dist/bundle.js"></script>
  </body>
</html>

Then run webpack on the command-line to create bundle.js.

Awesome isn't it? Let's dive in!

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).

Platinum Monthly Sponsors

platinum monthly sponsorsare those who are currently pledging $2,500 or more monthly to webpack.

Chrome Webpack Sponsorship's avatartrivago's avatarAG Grid's avatarInstacart's avatar

Gold Monthly Sponsors

gold monthly sponsorsare those who are currently pledging $500 to $2,500 monthly to webpack.

Airbnb's avatarSAP SE's avatarVercel's avatarCircleCI's avatar

Silver Monthly Sponsors

silver monthly sponsorsare those who are currently pledging $100 to $500 monthly to webpack.

Shopify's avatarWebflow's avatarTrue Car's avatarCarGurus's avatarIcons8: free icons, photos, illustrations, and music's avatarRaygun's avatarTuro's avataruudetkasinot.com's avatarDiscord's avatarspinsify.com/uk's avatarToppCasinoBonus.com's avatarPrincipal Financial Group's avatarMixpanel's avatarElastic's avatarCasino Online's avatarDigital Logic's avatarThe Big Phone Store's avatarCasino Professor's avatar2021 Calendar's avatarParhaimmat Nettikasinot's avatarAMP Project's avatarSentry's avatarBonusFinder Canada's avatarNettikasinovertailu's avatarVedonlyontibonukset.com's avatarCybozu, Inc.'s avatarJDLT's avatarZack Jackson's avatarFirestick Blog's avatarStrapi's avatarPeerigon's avatarHubSpot's avatarAppfolio's avatarWonderProxy's avatarNettikasinolista.com's avatarOctober 2021 Calendar's avatarInVision AG's avatarTopHosting.Guide's avatarList.Casino's avatar

Bronze Monthly Sponsors

bronze monthly sponsorsare those who are currently pledging $10 to $100 monthly to webpack.

Turtlebet - Nettikasinot's avatarAnbefaltCasino.com's avatarUbie's avatarCoinbase's avatarsitesdeaposta.com's avatarSquare code's avatarEY Doberman's avatarCasino Topp's avatarCasinoTop.com's avatarIntracto's avatarTorutek's avatarEasy Agile's avatarCoupons4Printing's avatarTROYPOINT's avatarPassportphotonow's avatarcampoint AG's avatarPractice Ignition's avatarModern Treasury's avatarZambion's avatarThe Org's avatarNettikasinot's avatarAwisee's avatarScreen recorder's avatarDll Download's avatarZadluzenia.com's avatarChristian Gonzalez's avatarPay N Play's avatarFlorian Studio's avatarNewicon's avatarBestBitcoinCasinonet's avatarATS.io's avatarCryptoNewsZ's avatarwww.czerwona-skarbonka.pl's avatarNettikasinot.org's avatarPelisivut's avatarKasinot.fi's avatarFire Stick Tricks's avatarPikakasinot's avatarMattias Kelmeling 's avatarNFL Thursday's avatarlaunchdarkly's avatarMonarch Air Group's avatarFlowdash's avatarButtondown, LLC's avatarCvent's avatarcasinoble.ch's avatarBalsa's avatarSteven's avatarJohannes Weber's avatarRelativeCI's avatarSTORIS's avatarCoinNewsSpan's avatarRagunath Ramaswamy's avatarEliseu Monar dos Santos's avatarTaopaiC Tao's avatarSay Yup's avatarWaiterio LLC's avatarHolion ApS's avatarBrainbow's avatarAndres Alva's avatarPrezly's avatarCasinofox.se's avatarRStudio's avatarSiMedia's avatarLowdefy's avatarCorey Ward'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:

Eric Lanehart's avatarGuest's avatarHideo Hattori's avatarEmre Bogazliyanlioglu's avatarSupercazino.ro's avatarBulan's avatarAndré Matulionis dos Santos's avatarTrevor Richardson's avatarAliaksandr Radzivanovich's avatarAndreas Knab's avatarJed's avatarRui Chen's avatarJorge Sanabria's avatartu4mo's avatarMasafumi Koba's avatarCCC's avataranonymous's avatarIncognito's avatarOnline Casino Nederland's avatarDeal Empire's avatarAlexander Wunschik's avatarVignesh Balasundaram's avatarEllis Dos's avatarPatric Stromberg's avatarReady Chi's avatarJaeseung Yum's avatarreBuy's avatarAzariasB's avatarMukesh Soni's avatarJaap Lorier's avatarEsben Petersen's avatarSarah Alsager's avatarJason Wendlandt's avatarHealth Nerdy's avatarDavide Crestini's avatarLive NetTV's avatarAlligator.io's avatarMayank Goyal's avatarHoward Rosenorn's avatarPhotoEditorSDK's avatarBrandon Pierce's avatarBen Cao's avatarAddy Osmani's avatarElberth Jaimes's avatarMatt Welke's avatarPatrick Szczypinski's avatarKeith Ito's avatarNathan Walker's avatarmeyer's avatarDylan Byth's avatarKyle Peterson's avatarEvgeny Samsonov's avatarIlya Kolesnikov's avatarJoshua Loehr's avatarCale Newman's avatarDavid Graham's avatarJulian Kani's avatarJoshua Wiens's avatarInspire Media's avatarKevin Ortman's avataranonymous's avataruffizzi cloud's avatarNel Malikova's avatarAntonio Yee's avatarAchint Verma's avatarTamouse Temple's avatarElías Rafael  Rodelo Osorio's avatarMatteo's avatarDan J's avatarCarlos Guimaraes's avatarspalger's avatarDan Abramov's avatarEric Jiang's avatarDrill Press Pro's avatarAnimalsluxury's avatarCharles Toller's avatarLesha Koss's avatarSam Marrable's avatarSimon Stromberg's avatarTristan Rasmussen's avatarTop Pfannen's avatarCrosswordsolver's avatarJulian Modesto's avatarSimon Stromberg's avatarAnkur J's avatarSergii Rudenko's avatarVisit Ventures's avatarEducative.io's avatarShuai Peng's avatarDirk Preising's avatarJeremia Kimelman's avatarWill Rogers's avatarAaron Trostle's avatarMatt Dionis's avatarOliver Zeigermann's avatarCouponArea's avatarJørn Myrland's avatarJustRemote's avatarCJ Jessett's avatarAndi Semler's avatar

Webpack 5 has been officially released. Read our announcement. Not ready yet? Read webpack 4 documentation here.