Installation and Configuration of Webpacker

Learn to install and configure Webpacker in this lesson.

Installation

A Rails 6.1 app installs Webpacker as part of the default app creation, but we will need to make some configuration changes up front to install Hotwire and ensure that CSS and TypeScript are properly integrated.

Webpacker is a Rails gem, so the default install puts it into our Gemfile:

gem "webpacker"

This course uses Webpacker 6.0 (sometimes called Beta 6), which is in beta and soon to be released.

Get hands-on with 1400+ tech skills courses.