add BUILD_MODE switching by environment variables.

This commit is contained in:
vorotamoroz
2025-11-18 08:52:25 +00:00
parent f81e71802b
commit 0e5846b670

View File

@@ -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
*/