diff options
| author | XhmikosR <[email protected]> | 2020-02-22 08:54:43 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-22 08:54:43 +0200 |
| commit | b8ffcdf9a4b8d61ef896c102732e15af39e883b5 (patch) | |
| tree | 913d0533f910408580e70dbacbfa6009521906ca /package.json | |
| parent | 9d50c6a18fcfd2e42ccc4e7b29d887c574bfadea (diff) | |
| download | bootstrap-b8ffcdf9a4b8d61ef896c102732e15af39e883b5.tar.xz bootstrap-b8ffcdf9a4b8d61ef896c102732e15af39e883b5.zip | |
Use `hugo.Environment` instead of `getenv` (#29240)
This is set automatically to "development" when the local server is running, and to "production" when Hugo builds the site.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/package.json b/package.json index a209786ac..32e45fd08 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,6 @@ "docs": "npm-run-all docs-build docs-lint", "docs-build": "hugo --cleanDestinationDir", "docs-compile": "npm run docs-build", - "docs-production": "cross-env HUGO_ENV=production npm run docs-build", "docs-linkinator": "linkinator _gh_pages --recurse --silent --skip \"^(?!http://localhost)\"", "docs-vnu": "node build/vnu-jar.js", "docs-lint": "npm-run-all --parallel docs-vnu docs-linkinator", @@ -57,13 +56,13 @@ "docs-serve-only": "serve _gh_pages --listen 9001", "lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json", "update-deps": "ncu -u -x karma-browserstack-launcher,popper.js && npm update && echo Manually update site/assets/js/vendor", - "release": "npm-run-all dist release-sri release-zip docs-production", + "release": "npm-run-all dist release-sri release-zip docs-build", "release-sri": "node build/generate-sri.js", "release-version": "node build/change-version.js", "release-zip": "cross-env-shell \"rm -rf bootstrap-$npm_package_version-dist && cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && rm -rf bootstrap-$npm_package_version-dist\"", "dist": "npm-run-all --parallel css js", "test": "npm-run-all lint dist js-test docs-build docs-lint", - "netlify": "npm-run-all dist release-sri docs-production", + "netlify": "npm-run-all dist release-sri docs-build", "watch": "npm-run-all --parallel watch-*", "watch-css-main": "nodemon --watch scss/ --ext scss --exec \"npm-run-all css-lint css-compile css-prefix\"", "watch-css-docs": "nodemon --watch site/assets/scss/ --ext scss --exec \"npm run css-lint\"", |
