From f6775b981470491cc1a7b59917a37eb546592c2a Mon Sep 17 00:00:00 2001 From: eti Date: Sun, 26 Apr 2026 22:19:15 +0200 Subject: [PATCH] flake: suppress caniuse-lite warning from tailwindcss Standalone tailwindcss embeds frozen caniuse-lite, triggers Browserslist warning on startup. Set BROWSERSLIST_IGNORE_OLD_DATA to silence it. Signed-off-by: eti --- .air/appview.toml | 2 +- .gitignore | 3 +-- flake.nix | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.air/appview.toml b/.air/appview.toml index 3ded6387..83f14ca2 100644 --- a/.air/appview.toml +++ b/.air/appview.toml @@ -6,5 +6,5 @@ cmd = "go build -o out/appview.out cmd/appview/main.go" bin = "out/appview.out" include_ext = ["go"] -exclude_dir = ["avatar", "camo", "sites", "indexes", "nix", "tmp"] +exclude_dir = ["avatar", "camo", "sites", "indexes", "nix", "tmp", "node_modules"] stop_on_error = true diff --git a/.gitignore b/.gitignore index fd803f47..9299bc20 100644 --- a/.gitignore +++ b/.gitignore @@ -7,8 +7,7 @@ appview/pages/static/* result !.gitkeep out/ -./camo/node_modules/* -./avatar/node_modules/* +node_modules/ patches *.qcow2 .DS_Store diff --git a/flake.nix b/flake.nix index 93e50fe8..b57ef502 100644 --- a/flake.nix +++ b/flake.nix @@ -237,6 +237,7 @@ tailwind-watcher = pkgs.writeShellScriptBin "run" '' + export BROWSERSLIST_IGNORE_OLD_DATA=true ${pkgs.tailwindcss}/bin/tailwindcss --watch=always -i input.css -o ./appview/pages/static/tw.css ''; in { -- 2.51.2