Skip to content

Commit 53ab636

Browse files
committed
run with postcss in production if env var is passed
1 parent afd7dd0 commit 53ab636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/tasks/build.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace :tailwindcss do
22
desc "Build your Tailwind CSS"
33
task :build do |_, args|
44
debug = args.extras.include?("debug")
5-
postcss = args.extras.include?("postcss")
5+
postcss = args.extras.include?("postcss") || !ENV['TAILWIND_POSTCSS'].blank?
66
command = Tailwindcss::Commands.compile_command(debug: debug, postcss: postcss)
77
puts command.inspect if args.extras.include?("verbose")
88
system(*command, exception: true)

0 commit comments

Comments
 (0)