What is Webpack?
The JavaScript ecosystem has been rapidly evolving over the past several years, resulting in new frameworks and libraries popping up constantly. Bundlers came about as a way to enable developers to split a JavaScript application into several files without having to worry about managing global namespaces, script loading order, or an incredibly long list of <script> tags in the HTML file. A bundler combines all of the files into one and resolves any naming collisions.
Webpack is, at the time of writing, one of the most popular bundlers for frontend development. It does much more than combine JavaScript files, however. It also performs complex tasks such as code-splitting and tree shaking (dead-code elimination). Webpack was ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access