Skip to content

Commit 866b00b

Browse files
committed
run with postcss in production if env var is passed
1 parent 4dd330f commit 866b00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/build.rake

Lines changed: 1 addition & 1 deletion
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
88
system(*command, exception: true)

0 commit comments

Comments
 (0)