mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-12 17:25:56 +00:00
Add production switch on environment vars
This commit is contained in:
@@ -12,7 +12,7 @@ import inlineWorkerPlugin from "esbuild-plugin-inline-worker";
|
|||||||
import { terserOption } from "./terser.config.mjs";
|
import { terserOption } from "./terser.config.mjs";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
|
|
||||||
const prod = process.argv[2] === "production";
|
const prod = process.argv[2] === "production" || process.env?.BUILD_MODE === "production";
|
||||||
const keepTest = true; //!prod;
|
const keepTest = true; //!prod;
|
||||||
|
|
||||||
const manifestJson = JSON.parse(fs.readFileSync("./manifest.json") + "");
|
const manifestJson = JSON.parse(fs.readFileSync("./manifest.json") + "");
|
||||||
|
|||||||
Reference in New Issue
Block a user