Skip to content

Commit 97f110a

Browse files
committed
verbose arg for build commands
By default, removes the verbose log line when running a Tailwind build. This isn't really needed most of the time. You can use the `verbose` option to include it. ``` % bin/rake "tailwindcss:build[verbose]" ["/Users/alex/.rvm/gems/ruby-3.1.2/gems/tailwindcss-rails-2.0.21-x86_64-darwin/exe/x86_64-darwin/tailwindcss", "-i", "/Users/alex/Code/foo/app/assets/stylesheets/application.tailwind.css", "-o", "/Users/alex/Code/foo/app/assets/builds/tailwind.css", "-c", "/Users/alex/Code/foo/config/tailwind.config.js", "--minify"] Rebuilding... Done in 480ms. % bin/rake "tailwindcss:build" Rebuilding... Done in 500ms. ```
1 parent f095f3f commit 97f110a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tasks/build.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace :tailwindcss do
33
task :build do |_, args|
44
debug = args.extras.include?("debug")
55
command = Tailwindcss::Commands.compile_command(debug: debug)
6-
puts command.inspect
6+
puts command.inspect if args.extras.include?("verbose")
77
system(*command, exception: true)
88
end
99

@@ -12,7 +12,7 @@ namespace :tailwindcss do
1212
debug = args.extras.include?("debug")
1313
poll = args.extras.include?("poll")
1414
command = Tailwindcss::Commands.watch_command(debug: debug, poll: poll)
15-
puts command.inspect
15+
puts command.inspect if args.extras.include?("verbose")
1616
system(*command)
1717
end
1818
end

0 commit comments

Comments
 (0)