From the course: Learning webpack 4

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

What is webpack?

What is webpack?

From the course: Learning webpack 4

Start my 1-month free trial

What is webpack?

- [Narrator] Webpack is a build tool that allows us to take all of our assets and turn them into a production ready bundle. All of our files are considered modules and we tell Webpack to load those modules when we configure our project. So why would we use something like Webpack? Well the answer to that starts by looking back at how loading assets used to work in web projects. Consider this HTML file. We're adding tons of script tags here in the head, three of them, and when we used to add script tags like this, it could get pretty messy. Errors could occur from the hierarchy of these scripts. Global variables might be over written, and there might be unintended consequences of functions being called before others. Order was extremely important and really difficult to manage. And all of these HTTP requests are really taxing on browsers. So some of the benefits of working with something like Webpack, is that it provides an alternative to some of these complications, with a concept of a…

Contents