Hacker News new | past | comments | ask | show | jobs | submit login

I don’t know about Rails specifically but I was able to create my own custom asset pipeline for Roda framework using the latest version of Snowpack. I’m assuming it would be no different for Deno.



Do you happen to have source you can share?

I've rolled my own assets pipeline with a Sinatra app, but did not tap into Node.

I think with Rails, there's probably some way to hook into the framework, just not sure how one would approach this.


My project is closed-source but I used this project as a starting point: https://github.com/choonggg/fusrodah

It's a really good/barebones Roda project that uses webpack for assets/js pipeline and Tailwind CSS for UI. My methodology was:

1) clone the project

2) then swap out webpack for Snowpack

I was able to do that within 1 day and honestly, it was well worth the effort due to the amount of knowledge that come with it. Snowpack is much much faster and efficient in terms of resources vs webpack. The newest version, Snowpack3, uses esbuild internally which basically puts it on steroids. Good luck!

Reference: https://www.snowpack.dev/posts/2021-01-13-snowpack-3-0

FYI, in my dev stack, I'm running Puma server, Sidekiq worker, Snowpack dev server and Guard for live reload capabilities. I'm using Foreman to startup all 4 things using a Procfile and my startup time clocks in at 2.85s from issuing "foreman start". I hope this helps!


Thanks!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: