| CARVIEW |
Select Language
HTTP/2 200
date: Fri, 26 Dec 2025 06:22:11 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
via: 1.1 varnish
age: 26
x-served-by: cache-bom-vanm7210078-BOM
x-cache: HIT
x-cache-hits: 1
x-timer: S1766730132.939735,VS0,VE1
vary: Accept-Encoding
x-fastly-request-id: 3c492fa08d7f53e495e1b8c8690747607840e98e
cf-cache-status: DYNAMIC
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=i0ToTryA42wneSIZwVRsJDusfm2XNZJTC0qwZSKXOKgewK%2FDRa8ZWBzBoQaRxvx2TBR938e9ck7U5LaQ%2Bb9%2Bvz9gkUa4PKoYtbicgHw%3D"}]}
cf-ray: 9b3e7b7c3fedc1b8-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