File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def compile_command(debug: false, **kwargs)
63
63
"-c" , Rails . root . join ( "config/tailwind.config.js" ) . to_s ,
64
64
] . tap do |command |
65
65
command << "--minify" unless debug
66
+ command << "--postcss" if postcss
66
67
end
67
68
end
68
69
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ namespace :tailwindcss do
2
2
desc "Build your Tailwind CSS"
3
3
task :build do |_ , args |
4
4
debug = args . extras . include? ( "debug" )
5
- command = Tailwindcss ::Commands . compile_command ( debug : debug )
5
+ postcss = args . extras . include? ( "postcss" )
6
+ command = Tailwindcss ::Commands . compile_command ( debug : debug , postcss : postcss )
6
7
puts command . inspect
7
8
system ( *command , exception : true )
8
9
end
@@ -11,7 +12,8 @@ namespace :tailwindcss do
11
12
task :watch do |_ , args |
12
13
debug = args . extras . include? ( "debug" )
13
14
poll = args . extras . include? ( "poll" )
14
- command = Tailwindcss ::Commands . watch_command ( debug : debug , poll : poll )
15
+ postcss = args . extras . include? ( "postcss" )
16
+ command = Tailwindcss ::Commands . watch_command ( debug : debug , poll : poll , postcss : postcss )
15
17
puts command . inspect
16
18
system ( *command )
17
19
end
You can’t perform that action at this time.
0 commit comments