Skip to content

Commit 06f5d45

Browse files
wlipaflavorjones
andcommitted
suppress caniuse-lite is outdated warning
Co-authored-by: Mike Dalessio <[email protected]>
1 parent 2354e83 commit 06f5d45

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: lib/puma/plugin/tailwindcss.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def start(launcher)
1313
# If we use system(*command) instead, IRB and Debug can't read from $stdin
1414
# correctly bacause some keystrokes will be taken by watch_command.
1515
begin
16-
IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io|
16+
IO.popen(Tailwindcss::Commands::ENV, Tailwindcss::Commands.watch_command, 'r+') do |io|
1717
IO.copy_stream(io, $stdout)
1818
end
1919
rescue Interrupt

Diff for: lib/tailwindcss/commands.rb

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module Tailwindcss
44
module Commands
5+
ENV = {'BROWSERSLIST_IGNORE_OLD_DATA' => '1'}
6+
57
class << self
68
def compile_command(debug: false, **kwargs)
79
rails_root = defined?(Rails) ? Rails.root : Pathname.new(Dir.pwd)

Diff for: lib/tasks/build.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace :tailwindcss do
44
debug = args.extras.include?("debug")
55
command = Tailwindcss::Commands.compile_command(debug: debug)
66
puts command.inspect if args.extras.include?("verbose")
7-
system(*command, exception: true)
7+
system(Tailwindcss::Commands::ENV, *command, exception: true)
88
end
99

1010
desc "Watch and build your Tailwind CSS on file changes"
@@ -14,7 +14,7 @@ namespace :tailwindcss do
1414
always = args.extras.include?("always")
1515
command = Tailwindcss::Commands.watch_command(always: always, debug: debug, poll: poll)
1616
puts command.inspect if args.extras.include?("verbose")
17-
system(*command)
17+
system(Tailwindcss::Commands::ENV, *command)
1818
rescue Interrupt
1919
puts "Received interrupt, exiting tailwindcss:watch" if args.extras.include?("verbose")
2020
end

0 commit comments

Comments
 (0)