diff options
author | Vitaly Takmazov | 2021-11-07 06:50:22 +0000 |
---|---|---|
committer | Vitaly Takmazov | 2021-11-07 06:50:22 +0000 |
commit | 0e3739a622c36378c43342ac20cf5d6c1ff703bc (patch) | |
tree | 33e1c5057046c8144f31e0e3b033fab037e515ab | |
parent | 8bac426e420e100ff68f0d9bf3a6be3f3f53ffb0 (diff) |
Force production environment for NPM scripts
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
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", |