Skip to content

Commit

Permalink
Allow custom postcss.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmeij committed Jan 8, 2024
1 parent 7d35f29 commit d00d83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tailwindcss/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def compile_command(debug: false, **kwargs)
"-c", Rails.root.join("config/tailwind.config.js").to_s,
].tap do |command|
command << "--minify" unless (debug || rails_css_compressor?)
command << "--postcss #{Rails.root.join("config/postcss.config.js")}" if File.exist?(Rails.root.join("config/postcss.config.js"))
end
end

Expand Down

0 comments on commit d00d83b

Please sign in to comment.