I had to manually add the following line to tailwind.config.js in a rails 7 app using haml-rails to get the JIT compiler to work.
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -2,6 +2,7 @@ module.exports = {
mode: 'jit',
purge: [
'./app/views/**/*.html.erb',
+ './app/views/**/*.html.haml',
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js'
]
Is it worth including that in the install script? If so, do you want me to try my hand at a PR?