Working with Rails Engines, Importmap and TailwindCSS for assets.
25-Aug-2023 931
Rails engines are one of my favorite tools when I want to isolate reusable functionality for Rails applications. An example of this is the NoPassword gem, which allows users to login into an application just with their email and the received link and code.With Rails 3.1, the engines were mountable and integrated with the Asset Pipeline to manage the engine’s assets. This continued to work this way until Webpack was introduced to Rails in version 5.1. At this moment, it was not clear how to make Webpack work with the engine’s assets or any other gem that included assets.
Working with Rails Engines, Importmap and TailwindCSS for assets. #ruby #rubydeveloper #rubyonrails #Working #Rails #Engines, #Importmap #TailwindCSS #assets. #assets. #engines, #importmap #tailwindcss https://rubyonrails.ba/link/working-with-rails-engines-importmap-and-tailwindcss-for-assets