File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11namespace :tailwindcss do
2- desc "Install Tailwindcss into the app"
2+ desc "Install Tailwind CSS into the app"
33 task :install do
44 system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../install/tailwindcss.rb" , __dir__ ) } "
55 end
66
7+ desc "Show the list of class names being kept in Tailwind CSS"
78 task :keeping_class_names do
89 puts Tailwindcss ::Purger . extract_class_names_from ( Rails . root . glob ( "app/views/**/*.*" ) + Rails . root . glob ( "app/helpers/**/*.rb" ) )
910 end
1011
12+ desc "Show Tailwind CSS styles that are left after purging unused class names"
1113 task :preview_purge do
1214 puts Tailwindcss ::Purger . purge \
1315 Pathname . new ( __FILE__ ) . join ( "../../../app/assets/stylesheets/tailwind.css" ) . read ,
You can’t perform that action at this time.
0 commit comments