From b3068414cdbad665ddf213b4b1cb3d51e0788fb5 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 30 Nov 2025 20:36:56 +0100 Subject: [PATCH] Frontend: Set BUILD_ENV=development for "npm run watch" #5358 Signed-off-by: Michael Mayer --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index d9cf5c305..6ff030a56 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,7 +27,7 @@ "security:scan": "npm run -s security:scan-installs && npm run -s security:scan-xss", "security:scan-installs": "sh -lc 'set -e; MATCHES=\"$(rg -n --hidden --glob !**/.git/** -S \"npm (ci|install|update)\" ./Makefile ./package.json 2>/dev/null || true)\"; if [ -z \"$MATCHES\" ]; then echo \"No npm install/update/ci commands found in frontend/\"; exit 0; fi; VIOLATIONS=\"$(printf %s \"$MATCHES\" | rg -v -e \"ignore-scripts\" -e \"install .* -g npm\" -e \"update .* -g npm\" -e \":[0-9]+:\\s*#\" -e \"install-npm\" || true)\"; if [ -n \"$VIOLATIONS\" ]; then echo \"ERROR: npm install/update/ci without --ignore-scripts (exceptions excluded)\"; printf %s\\n \"$VIOLATIONS\"; exit 1; fi; echo \"OK: All frontend installs/updates use --ignore-scripts or are allowed exceptions.\"'", "security:scan-xss": "sh -lc 'set -e; if rg -n --glob \"src/**\" -S \"v-html=\\\"\" src >/dev/null; then echo \"ERROR: v-html usage detected; prefer v-sanitize or $util.sanitizeHtml()\"; rg -n --glob \"src/**\" -S \"v-html=\\\"\" src; exit 1; else echo \"OK: No v-html usage detected.\"; fi'", - "watch": "webpack --watch" + "watch": "cross-env BUILD_ENV=development NODE_ENV=production webpack --watch" }, "browserslist": [ ">0.25% and last 2 years"