Installing Webpacker

Learn to install Webpacker in this lesson.

A typical Rails 6 app will install Webpacker as part of the default app creation. These installation steps have already been done for the application in the sample code, we’re walking through these steps so you can see what files and changes are part of a Webpacker installation.

To install Webpacker, we first need to add the gem to the bundle file, so ensure that your Gemfile contains the line.

Get hands-on with 1200+ tech skills courses.