Merge pull request #2 from JohannUlbrich/cross-env

Add cross-env to make environment variables work on all platforms
This commit is contained in:
Rem W 2020-08-28 23:41:49 +02:00 committed by GitHub
commit 184d6ae015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

9
package-lock.json generated
View file

@ -3070,6 +3070,15 @@
"sha.js": "^2.4.8"
}
},
"cross-env": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.2.tgz",
"integrity": "sha512-KZP/bMEOJEDCkDQAyRhu3RL2ZO/SUVrxQVI0G3YEQ+OLbRA3c6zgixe8Mq8a/z7+HKlNEjo8oiLUs8iRijY2Rw==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.1"
}
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

View file

@ -5,10 +5,10 @@
"scripts": {
"build-dev:webpack": "webpack",
"watch:webpack": "webpack --watch",
"watch:eleventy": "ELEVENTY_ENV=development eleventy --serve",
"watch:eleventy": "cross-env ELEVENTY_ENV=development eleventy --serve",
"dev": "npm-run-all clean build-dev:webpack --parallel watch:*",
"build:webpack": "NODE_ENV=production webpack --mode production",
"build:eleventy": "ELEVENTY_ENV=production eleventy",
"build:webpack": "cross-env NODE_ENV=production webpack --mode production",
"build:eleventy": "cross-env ELEVENTY_ENV=production eleventy",
"build": "run-s clean build:*",
"serve:local": "serve _site",
"serve": "run-s build serve:local",
@ -24,6 +24,7 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"autoprefixer": "^9.8.6",
"copy-webpack-plugin": "^6.0.3",
"cross-env": "^7.0.2",
"css-loader": "^4.2.1",
"cssnano": "^4.1.10",
"date-fns": "^2.15.0",