Webpack
Learn how to use webpack in this lesson.
We'll cover the following...
Yarn helps us manage our dependencies, and webpack is what allows us to refer to the dependencies in our code.
It’s a little tricky to talk about webpack in the context of our project because webpack’s behavior depends on its configuration file, and one of the things Rails Webpacker does is generate that configuration file from different inputs so we don’t actually see the real webpack configuration in a file.
There’s a partial workaround that will allow us to print out the configuration file, or at least most of it, and I’m going to use it to guide our way through the way webpack works, and then I’m going to talk about how Webpacker simplifies webpack.
The workaround to let us actually see our webpack ...