From 61f4429fbd99842f14e77190f171b579923522ea Mon Sep 17 00:00:00 2001 From: talyz Date: Fri, 9 Jul 2021 16:35:35 +0200 Subject: discourse: Use `terser` when building assets Discourse prefers to use `terser` when building js assets, see https://github.com/discourse/discourse/pull/12656. It still wants to find `uglify-js` in order to not fall back to a ruby js compression library, so let's keep it around for now. A fix for this has been submitted upstream in https://github.com/discourse/discourse/pull/13683. --- pkgs/servers/web-apps/discourse/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/web-apps/discourse/default.nix b/pkgs/servers/web-apps/discourse/default.nix index ae5d1818c61..d018fe5fa1a 100644 --- a/pkgs/servers/web-apps/discourse/default.nix +++ b/pkgs/servers/web-apps/discourse/default.nix @@ -150,6 +150,7 @@ let brotli procps nodePackages.uglify-js + nodePackages.terser ]; patches = [ -- cgit 1.4.1