File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def start(launcher)
13
13
# If we use system(*command) instead, IRB and Debug can't read from $stdin
14
14
# correctly bacause some keystrokes will be taken by watch_command.
15
15
begin
16
- IO . popen ( Tailwindcss ::Commands . watch_command , 'r+' ) do |io |
16
+ IO . popen ( Tailwindcss ::Commands :: ENV , Tailwindcss :: Commands . watch_command , 'r+' ) do |io |
17
17
IO . copy_stream ( io , $stdout)
18
18
end
19
19
rescue Interrupt
Original file line number Diff line number Diff line change 2
2
3
3
module Tailwindcss
4
4
module Commands
5
+ ENV = { 'BROWSERSLIST_IGNORE_OLD_DATA' => '1' }
6
+
5
7
class << self
6
8
def compile_command ( debug : false , **kwargs )
7
9
rails_root = defined? ( Rails ) ? Rails . root : Pathname . new ( Dir . pwd )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace :tailwindcss do
4
4
debug = args . extras . include? ( "debug" )
5
5
command = Tailwindcss ::Commands . compile_command ( debug : debug )
6
6
puts command . inspect if args . extras . include? ( "verbose" )
7
- system ( *command , exception : true )
7
+ system ( Tailwindcss :: Commands :: ENV , *command , exception : true )
8
8
end
9
9
10
10
desc "Watch and build your Tailwind CSS on file changes"
@@ -14,7 +14,7 @@ namespace :tailwindcss do
14
14
always = args . extras . include? ( "always" )
15
15
command = Tailwindcss ::Commands . watch_command ( always : always , debug : debug , poll : poll )
16
16
puts command . inspect if args . extras . include? ( "verbose" )
17
- system ( *command )
17
+ system ( Tailwindcss :: Commands :: ENV , *command )
18
18
rescue Interrupt
19
19
puts "Received interrupt, exiting tailwindcss:watch" if args . extras . include? ( "verbose" )
20
20
end
You can’t perform that action at this time.
0 commit comments