Alpha preview: Rails 7 w/ esbuild + Tailwind CSS

preview_player
Показать описание

JavaScript Bundling for Rails:

CSS Bundling for Rails:
Рекомендации по теме
Комментарии
Автор

Just what I needed! It's 2023 and this works perfectly.

alphalion
Автор

Javascript has been a bit confusing/scattered on Rails for a while now, even when we've tried to opt for going by the conventions as much as possible. That has really been the main pain for me with an otherwise amazing framework.

Looks like you're in the process of nailing this too!

TTV
Автор

Glorious. I've really enjoyed watching this shape up over the last month David!

leehericks
Автор

I’m glad they took this idea from Phoenix

jonocodes
Автор

This looks amazing! I was a little worried about the hotwire default, but now this allows a lot of new opportunities for rails

Rekefa
Автор

I've heard they do something interesting with Docker to develop at Basecamp. I'm eager for DHH to show us and possibly release something useful to help us :-)

chrisr
Автор

Nice… I was studying tailwind on a elixir Phoenix project.. so, seeing that addon on Rails is awesome 😎

fabiannot
Автор

I 💘 Rails! I've been coding in Rails for 10+ years and I've only ever used it as my back-end API. Well, except a few tutorials and a silly side project for scrum poker 🃏. Maybe I'll try a Rails front-end project with Rails 7.

dupre
Автор

That's awesome. I like the direction. Webpack was great but with time it was adding too much complexity.

Mixesha
Автор

rails 7 looks very promising, hope it will drive new life to RoR, DHH has a very good vision how should modern development look

arthurkelley
Автор

Wait.. how did the "class" attribute work in jsx? Isn't it supposed to be "className" instead? So confused

GG-bvou
Автор

Looking forward to this. but I hope this will not have issue to other browser! Kudos!

RyanJeffB
Автор

What is you remove "font-extrabold" from html.erb. Will it recompile css without font-extrabold included or it also watches JSX components css usage?

vanopiano
Автор

How can we add another css eg. "custom.css" and compile it so we can use it in other layout?

MiguelPeniche
Автор

With these changes, would be nice to move app/javascript back to app/assets/javascript

k
Автор

What if your JSX conditionally adds a class to some div? Will Tailwind include it in the pruned set of classes?

ytflix
Автор

Is the importmaps shim available somewhere or is it custom built for rails? I have trouble finding it for download.

koviniskaciukas
Автор

This does not tell one, how to get in data into the react component

andrewoko-odion
Автор

Гениально! Пол часа разговаривать а потом накопипастить кода и сказать "Мое изобретение!"

vesh
Автор

Hi David Rails7 is awsome all the hotwaire, esbuild + Tailwind css, all picess of libray can integrated . still i search not find easy ways to integrate Typescript in Rails officialy also

farenrai