File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- require_relative " upstream"
1
+ require_relative ' upstream'
2
2
3
3
module Tailwindcss
4
4
module Commands
@@ -25,7 +25,7 @@ def executable(
25
25
MESSAGE
26
26
end
27
27
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 |
29
29
Gem ::Platform . match ( Gem ::Platform . new ( File . basename ( File . dirname ( f ) ) ) )
30
30
end
31
31
@@ -55,7 +55,7 @@ def executable(
55
55
exe_path
56
56
end
57
57
58
- def compile_command ( debug : false , **kwargs )
58
+ def compile_command ( debug : false , postcss : false , **kwargs )
59
59
[
60
60
executable ( **kwargs ) ,
61
61
"-i" , Rails . root . join ( "app/assets/stylesheets/application.tailwind.css" ) . to_s ,
@@ -67,10 +67,11 @@ def compile_command(debug: false, **kwargs)
67
67
end
68
68
end
69
69
70
- def watch_command ( poll : false , **kwargs )
70
+ def watch_command ( poll : false , postcss : false , **kwargs )
71
71
compile_command ( **kwargs ) . tap do |command |
72
72
command << "-w"
73
73
command << "-p" if poll
74
+ command << "--postcss" if postcss
74
75
end
75
76
end
76
77
end
You can’t perform that action at this time.
0 commit comments