New Discussion

Notifications

You’re not receiving notifications from this thread.

How To Use Importmaps With Rails Discussion

7
General

Are you using import maps yet?

Great lesson, Chris! 👏

Thanks Matias!

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.

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

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.

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

Really great lesson!

Join the discussion
Create an account Log in

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

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

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