Ask A Question

Notifications

You’re not receiving notifications from this thread.

How To Use Importmaps With Rails Discussion

Are you using import maps yet?

Reply

Great lesson, Chris! 👏

Reply

Thanks Matias!

Reply

I don't feel comfortable not compressing all my files into a single minified package. It's strange to expect all my JS files to be so explicit for anyone to read and copy. I prefer to continue using esbuild.

Reply

What do you think you have in your JS files for not anyway to be able to read and learn from them? That pseudo protectionism is what's killing the web. Right-click -> View Source is how many learned to program

Reply

I had a real fight on my hands a month or two ago making them work with engines (then saw you put a video up, Chris!) It does seem the asset pipeline docs really could do with an update and point you down either an importmaps/propshaft OR sprockets/etc route.

Reply

I know the Rails Foundation is working on updating all of the guides so I'm sure it's on their todo list!

Reply

Really great lesson!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,400+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.