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 1
1
namespace :tailwindcss do
2
- desc "Install Tailwindcss into the app"
2
+ desc "Install Tailwind CSS into the app"
3
3
task :install do
4
4
system "#{ RbConfig . ruby } ./bin/rails app:template LOCATION=#{ File . expand_path ( "../install/tailwindcss.rb" , __dir__ ) } "
5
5
end
6
6
7
+ desc "Show the list of class names being kept in Tailwind CSS"
7
8
task :keeping_class_names do
8
9
puts Tailwindcss ::Purger . extract_class_names_from ( Rails . root . glob ( "app/views/**/*.*" ) + Rails . root . glob ( "app/helpers/**/*.rb" ) )
9
10
end
10
11
12
+ desc "Show Tailwind CSS styles that are left after purging unused class names"
11
13
task :preview_purge do
12
14
puts Tailwindcss ::Purger . purge \
13
15
Pathname . new ( __FILE__ ) . join ( "../../../app/assets/stylesheets/tailwind.css" ) . read ,
You can’t perform that action at this time.
0 commit comments