Description
Rails 7.0,2,2 engine generated using
rails plugin new tailtest --mountable --full -d postgresql --css tailwind
Does nothing with tailwind at all,
So adding manually does not work either.
Running, as per guidance, bundle add tailwindcss-rails
adds tailwind to the gemfile rather than the engines tailtest.gemspec
So after adding the dependency to the gemspec
spec.add_dependency "tailwindcss-rails", "~> 2.0"
and running bundle install
does install the engine however the rest of the manual installation fails
then adding the require to lib/engine.rb
require "tailwindcss-rails"
module Tailtest
class Engine < ::Rails::Engine
isolate_namespace Tailtest
end
end
then running the install process fails
rails tailwindcss:install
Resolving dependencies...
rails aborted!
Don't know how to build task 'tailwindcss:install' (See the list of available tasks with `rails --tasks`)
Did you mean? app:tailwindcss:install
Obviously the app:tailwindcss:install command fails too.
So I am probably missing an initializer of some sort in then engine.rb file but no idea on what it should be so this needs documenting. I would be happy to update the documentation if I had the solution but it would be much better if the generator just worked.