From 00478c14811504f80349eafa9a674b98ef4fba56 Mon Sep 17 00:00:00 2001 From: not-nullptr Date: Sat, 9 Mar 2024 12:40:34 +0000 Subject: [PATCH] add production build script --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index b57fc21..7475e18 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "dev": "vite dev", "build": "vite build", + "build-prod": "vite build && pm2 restart suyu-site", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",