diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-02 12:03:35 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-03-02 12:03:35 +0300 |
commit | 285efc01bbd6ff84f025b1acc5060233185e2f01 (patch) | |
tree | 123a3a4441a190accb784c8a383953c5b43c93e0 /package.json | |
parent | f83b1c14c88b36de419e0eeb3b7e335434bb2032 (diff) |
feat(environment): use hugo.Environment to judge the production environment
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 099ced9..565f324 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "build": "npx babel src --out-file assets/js/theme.min.js --source-maps", "start": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender -D", - "copy": "HUGO_ENV=production hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources" + "copy": "hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources" }, "husky": { "hooks": { |