Update package command to replace process.env.NODE_ENV automatically

This commit is contained in:
Ryan Gossiaux
2022-02-06 11:14:54 -08:00
parent 13e090e316
commit 78ec3bfb8a

View File

@@ -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",