From 0e3739a622c36378c43342ac20cf5d6c1ff703bc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 7 Nov 2021 06:50:22 +0000 Subject: Force production environment for NPM scripts --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c6d149fc..d06f0c57 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "compile:css": "postcss --verbose --map style.css.map src/main/assets/style.css -d src/main/resources/static/", "compile:js": "webpack", - "compile": "concurrently \"npm run compile:css\" \"npm run compile:js\"" + "compile": "cross-env NODE_ENV=production concurrently \"npm run compile:css\" \"npm run compile:js\"" }, "repository": { "type": "git", -- cgit v1.2.3