News for hackers. Stuff that matters.
Re:I Miss Rails by mbell on Thursday March 28, 2019 @08:11PM (#19517953)
In Rail 6 webpack (with a framework integration via the webpacker gem) is the default system for handling JS, CSS still goes through the asset pipeline though. I wouldn't be surprised if Rails 7 drops sprockets entirely.
Re:I Miss Rails by ksec on Sunday March 31, 2019 @06:48PM (#19538940)
And I have been wondering why it doesn't push the CSS to Webpack as well. There is no way in the foreseeable future that Rails could do without JS and hence Webpack is mandatory. We might as well push it as default or easily enabled / disabled via options.
Re:I Miss Rails by mbell on Sunday March 31, 2019 @08:59PM (#19539555)
It's clunky to build CSS 'packs' and it's unclear how to wire in asset helpers e.g. checksum'd file names for images. It's not insurmountable, but there is no obvious best path forward.
Re:I Miss Rails by 0xADEADBEE on Thursday March 28, 2019 @09:30PM (#19518378)
I saw this! It makes sense with the proliferation of front end view layers so I'm pleased that there's less work for me to do to integrate things like Vue and React. I was very late to the party with Rails but I do think it gets a lot of things right.