Skip to content

Add HAML to watcher for Rails 7 apps using Tailwind? #177

@matt17r

Description

@matt17r

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions