From 0e5846b6708b13f826fa7c11837a7f534389878a Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Tue, 18 Nov 2025 08:52:25 +0000 Subject: [PATCH] add BUILD_MODE switching by environment variables. --- terser.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terser.config.mjs b/terser.config.mjs index 171fd32..6b35d5c 100644 --- a/terser.config.mjs +++ b/terser.config.mjs @@ -4,7 +4,7 @@ if you want to view the source, please visit the github repository of this plugi */ `; -const prod = process.argv[2] === "production"; +const prod = process.argv[2] === "production" || process.env?.BUILD_MODE === "production"; /*** * @type import("terser").MinifyOptions */