Skip to content

Commit 3bdd471

Browse files
authored
Merge pull request #536 from wlipa/quiesce-caniuse-warning
suppress caniuse-lite is outdated warning
2 parents 02a4fcb + 06f5d45 commit 3bdd471

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Gemfile.lock

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ GEM
8787
net-protocol
8888
net-protocol (0.2.2)
8989
timeout
90-
net-smtp (0.5.0)
90+
net-smtp (0.5.1)
91+
net-protocol
9192
nokogiri (1.18.1)
9293
mini_portile2 (~> 2.8.2)
9394
racc (~> 1.4)

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

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)

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)