Skip to content

Commit b306841

Browse files
committed
Frontend: Set BUILD_ENV=development for "npm run watch" photoprism#5358
Signed-off-by: Michael Mayer <[email protected]>
1 parent 22e3c6d commit b306841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"security:scan": "npm run -s security:scan-installs && npm run -s security:scan-xss",
2828
"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.\"'",
2929
"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'",
30-
"watch": "webpack --watch"
30+
"watch": "cross-env BUILD_ENV=development NODE_ENV=production webpack --watch"
3131
},
3232
"browserslist": [
3333
">0.25% and last 2 years"

0 commit comments

Comments
 (0)