Skip to Content
Modern Front-End Development for Rails
book

Modern Front-End Development for Rails

by Noel Rappin
June 2021
Intermediate to advanced
398 pages
9h 35m
English
Pragmatic Bookshelf
Content preview from Modern Front-End Development for Rails

Understanding Why webpack Exists

I find it a little hard to get my head around what webpack is actually supposed to be doing, in part because webpack is abstract—it’s a mechanism to perform various transformations on your code without making strong claims about what transformations you should do. I don’t think it helps much that webpack’s official description of itself throws around jargony terms like “static module bundler.”

Instead, I find it easier to discuss what problems webpack and its related tools are solving for us. As far as our Rails app is concerned, we’re juggling three pieces of software that solve related problems for our client-side code: Yarn, webpack, and Webpacker.

The problem Yarn is designed to solve is: “What version of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modern Front-End Development for Rails, 2nd Edition

Modern Front-End Development for Rails, 2nd Edition

Noel Rappin
Agile Web Development with Rails 6

Agile Web Development with Rails 6

Sam Ruby, David B. Copeland, Dave Thomas

Publisher Resources

ISBN: 9781680508758Errata Page