| CARVIEW |
Select Language
HTTP/2 200
date: Fri, 26 Dec 2025 08:57:10 GMT
content-type: text/html; charset=utf-8
content-length: 7335
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
server: cloudflare
last-modified: Fri, 26 Dec 2025 00:10:12 GMT
access-control-allow-origin: *
etag: W/"694dd264-89e0"
expires: Fri, 26 Dec 2025 01:20:21 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: AB0F:272D88:4B5ADF:53CA5C:694DE07D
accept-ranges: bytes
age: 0
via: 1.1 varnish
x-served-by: cache-bom-vanm7210037-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1766739430.822640,VS0,VE198
vary: Accept-Encoding
x-fastly-request-id: b91a4cbdc753f15ed4b8acb6fa9983870b47c42c
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=VQFBkWXiXM%2BdiIiVnZZRcHLdWS2AgV6%2Fs3yOaQEOG%2B0LtehG7H4lfXl3uXVItVsnPTDuUTQHSKWr0hoGgHVFxQXodejpct2%2FsBe92bk%3D"}]}
cf-ray: 9b3f5e7c09643585-BLR
webpack bundle your
bundle your assets scripts
assets scripts
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
Platinum Sponsors
Gold Sponsors
Silver Sponsors
Bronze Sponsors
Backers