Skip to content

Commit a307ba8

Browse files
committed
param postcss
1 parent 931001c commit a307ba8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/tailwindcss/commands.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative "upstream"
1+
require_relative 'upstream'
22

33
module Tailwindcss
44
module Commands
@@ -25,7 +25,7 @@ def executable(
2525
MESSAGE
2626
end
2727

28-
exe_path = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f|
28+
exe_path = Dir.glob(File.expand_path(File.join(exe_path, '*', 'tailwindcss'))).find do |f|
2929
Gem::Platform.match(Gem::Platform.new(File.basename(File.dirname(f))))
3030
end
3131

@@ -55,7 +55,7 @@ def executable(
5555
exe_path
5656
end
5757

58-
def compile_command(debug: false, **kwargs)
58+
def compile_command(debug: false, postcss: false, **kwargs)
5959
[
6060
executable(**kwargs),
6161
"-i", Rails.root.join("app/assets/stylesheets/application.tailwind.css").to_s,
@@ -67,10 +67,11 @@ def compile_command(debug: false, **kwargs)
6767
end
6868
end
6969

70-
def watch_command(poll: false, **kwargs)
70+
def watch_command(poll: false, postcss: false, **kwargs)
7171
compile_command(**kwargs).tap do |command|
7272
command << "-w"
7373
command << "-p" if poll
74+
command << "--postcss" if postcss
7475
end
7576
end
7677
end

0 commit comments

Comments
 (0)