Working with Rails Engines, Importmap and TailwindCSS for assets.

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 #assets. #engines, #importmap #tailwindcss https://rubyonrails.ba/single/working-with-rails-engines-importmap-and-tailwindcss-for-assets

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles