Front Page Forums JavaScript Handling javascript assets in Roda

  • Handling javascript assets in Roda

    Posted by roman turner on 2022-11-18 at 14:15

    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?

    roman turner replied 1 year, 4 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

Log in to reply.