From 78ec3bfb8ae9778508a5d3495330b157f8b1fed4 Mon Sep 17 00:00:00 2001 From: Ryan Gossiaux Date: Sun, 6 Feb 2022 11:14:54 -0800 Subject: [PATCH] Update package command to replace process.env.NODE_ENV automatically --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f39b1f8..1a325fe 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "scripts": { "dev": "svelte-kit dev", "build": "svelte-kit build", - "package": "svelte-kit package", + "package": "svelte-kit package && find package/ -type f -exec sed -i '' -e 's/process.env.NODE_ENV/\"production\"/' {} \\;", "preview": "svelte-kit preview", "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",