mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-12 17:25:56 +00:00
add BUILD_MODE switching by environment variables.
This commit is contained in:
@@ -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
|
* @type import("terser").MinifyOptions
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user