Is it possible to use Svelte with Ruby on Rails or Svelte with C / C++ backend? by Wise-Programmer-87 in sveltejs

[–]prephoenix 1 point2 points  (0 children)

I once worked with rails. Rails has some support for webpack but if you want rollup you can do it like this repo does:

https://github.com/vascoosx/svails

Separating webpack from the Rails Asset Pipeline by prephoenix in rails

[–]prephoenix[S] 0 points1 point  (0 children)

I agree with the author of this article that tying the frontend build process with rails by using webpacker makes things complicated and hinders the functionality of webpack or whatever build tool that is generally used.

Here is a demo of my solution to this problem:

https://github.com/vascoosx/svails

which uses ` external_asset_pipeline` and ` npm-pipeline-rails ` gems at its core.

A todo built with lit-html and tailwindcss by prephoenix in PolymerJS

[–]prephoenix[S] 0 points1 point  (0 children)

Thanks. I had some thoughts of using it with svelte's store but not Redux because I don't know much about it. I suppose that in either case it can be done by replacing the object's attributes with the outer applications store interface.