From 7d7867f4b9aa8b383d28e07db2743a52c2c6459f Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 2 Feb 2021 18:23:47 +0800 Subject: [PATCH] fix: enable production mode --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 83be07f..1e407af 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "private": true, "scripts": { "dev": "npm run docs && HOST=0.0.0.0 nuxt & node -r esm ./one/build/watch.js", - "build": "npm run docs && nuxt build", + "build": "NODE_ENV=production npm run docs && nuxt build", "docs": "node -r esm ./one/build/generate.js", "start": "nuxt start", "generate": "npm run docs && nuxt generate",