-
Handling javascript assets in Roda
I am currently building out a web application using the Roda toolkit and am really enjoying it. I wanted to integrate stimulus with it and am stymied on if I am doing it “right”. I am using the assets plugin and directing it to js: [‘app.js’] but it can not handle modern module imports, or I am doing it wrong. So brought in npm, got esbuild and am compiling the js into ‘app.js’ and then it is served by roda’s assets plugin.
I am using a procfile monitored by hivemind, esbuild on watch to recompile the js and rerun watching my ruby file changes.
Does anyone else have experience with integrating modern js + roda? What did you do, or do you have an example repository?
Sorry, there were no replies found.
Log in to reply.