Skip to content

Commit ef2ca55

Browse files
authored
Add new "polling" task
* Add new task to invoke tailwindcss with the polling (-p) cli option
1 parent 47f636b commit ef2ca55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/tasks/build.rake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ namespace :tailwindcss do
66
system TAILWIND_COMPILE_COMMAND
77
end
88

9-
desc "Watch and build your Tailwind CSS on file changes"
9+
desc "Watch and build your Tailwind CSS on file changes (using filesystem events)"
1010
task :watch do
1111
system "#{TAILWIND_COMPILE_COMMAND} -w"
1212
end
13+
14+
desc "Watch and build your Tailwind CSS on file changes (using polling)"
15+
task :poll do
16+
system "#{TAILWIND_COMPILE_COMMAND} -p"
17+
end
1318
end
1419

1520
Rake::Task["assets:precompile"].enhance(["tailwindcss:build"])

0 commit comments

Comments
 (0)