Skip to Main Content
Modern Front-End Development for Rails, 2nd Edition
book

Modern Front-End Development for Rails, 2nd Edition

by Noel Rappin
September 2022
Intermediate to advanced content levelIntermediate to advanced
410 pages
10h 7m
English
Pragmatic Bookshelf
Content preview from Modern Front-End Development for Rails, 2nd Edition

Import Maps

I mentioned in passing at the beginning of the book that the jsbunding and cssbundling tooling is not the default in Rails 7. The Rails 7 default is called importmaps-rails, and is based on a newish standard feature called Import Maps. The goal of Import Maps is to allow you to write JavaScript tooling without doing any build step or bundling at all, and without having to use Node.js at all.

Import maps have the promise of a developer environment that is not encumbered by a continual JavaScript build process, and as such, sound pretty great. Import Maps are especially useful for Rails projects that don’t have a tremendous number of dependent packages, and don’t do much in the way of transpiling or converting assets.

Because import ...

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

Modern Front-End Development for Rails

Noel Rappin

Publisher Resources

ISBN: 9781680509977Errata Page