webpack.config.js
module.exports = {
entry: './app.js',
output: {
filename: 'bundle.js'
}
};
<!doctype html>
<html>
<head>
...
</head>
<body>
...
<script src="bundle.js"></script>
</body>
</html>
Then run webpack
on the command-line to create bundle.js
.
Get Started quickly in our Guides section, or dig into the Concepts section for more high-level information on the core notions behind webpack.
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!
The following persons/organizations made their first donation in the last 14 days.
platinum sponsorsare those who have pledged $50,000 or more to webpack.