June 2021
Intermediate to advanced
398 pages
9h 35m
English
As Rails 6 developers, our primary interaction with webpack is going to be through the Webpacker tool provided by Rails. In this chapter, we’ll take a look at using Webpacker in development and how to customize it when you want additional features.
As I write this, the current version of Webpacker is 6.0 beta 6. I expect there to be some changes before 6.0 goes final.
Installing Webpacker | |
|---|---|
|
|
The Webpacker gem is a default part of a new Rails 6 installation, which means Webpacker goes in the Gemfile. And by default, the webpack:install task is run when the app is created. You can skip Webpacker entirely with rails new . --skip-webpack-install ... |