From 285efc01bbd6ff84f025b1acc5060233185e2f01 Mon Sep 17 00:00:00 2001 From: Dillon Date: Mon, 2 Mar 2020 17:03:35 +0800 Subject: feat(environment): use hugo.Environment to judge the production environment --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package.json') 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": { -- cgit v1.2.3