Using Webpacker
Explore the process of setting up Webpacker in a Rails application, including adding necessary tags, understanding asset compilation, and observing how Webpacker manages JavaScript and TypeScript files in development. Gain insight into the file structure, digital fingerprinting, and source maps to streamline front-end development.
We'll cover the following...
We'll cover the following...
Setting Webpacker up
To follow along, you don’t need to install Webpacker but do look at this lesson to get an understanding of the file structure.
First, we want to make sure that everything is working. To connect the Webpacker build to our app, we need to add two javascript_pack_tag calls to the app/views/layouts/application.html.erb file, as ...
...