Skip to content

suppress caniuse-lite is outdated warning #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ GEM
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-smtp (0.5.1)
net-protocol
nokogiri (1.18.1)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
Expand Down
2 changes: 1 addition & 1 deletion lib/puma/plugin/tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def start(launcher)
# If we use system(*command) instead, IRB and Debug can't read from $stdin
# correctly bacause some keystrokes will be taken by watch_command.
begin
IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io|
IO.popen(Tailwindcss::Commands::ENV, Tailwindcss::Commands.watch_command, 'r+') do |io|
IO.copy_stream(io, $stdout)
end
rescue Interrupt
Expand Down
2 changes: 2 additions & 0 deletions lib/tailwindcss/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

module Tailwindcss
module Commands
ENV = {'BROWSERSLIST_IGNORE_OLD_DATA' => '1'}

class << self
def compile_command(debug: false, **kwargs)
rails_root = defined?(Rails) ? Rails.root : Pathname.new(Dir.pwd)
Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/build.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace :tailwindcss do
debug = args.extras.include?("debug")
command = Tailwindcss::Commands.compile_command(debug: debug)
puts command.inspect if args.extras.include?("verbose")
system(*command, exception: true)
system(Tailwindcss::Commands::ENV, *command, exception: true)
end

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