Skip to content

Commit d00d83b

Browse files
committed
Allow custom postcss.config.js
1 parent 7d35f29 commit d00d83b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/tailwindcss/commands.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def compile_command(debug: false, **kwargs)
8181
"-c", Rails.root.join("config/tailwind.config.js").to_s,
8282
].tap do |command|
8383
command << "--minify" unless (debug || rails_css_compressor?)
84+
command << "--postcss #{Rails.root.join("config/postcss.config.js")}" if File.exist?(Rails.root.join("config/postcss.config.js"))
8485
end
8586
end
8687

0 commit comments

Comments
 (0)