From c349bb1e2cff5a6e20711c8a82419bf2e358ad66 Mon Sep 17 00:00:00 2001 From: Eonseok Jeon <121864459+eonseok-jeon@users.noreply.github.com> Date: Tue, 24 Sep 2024 20:01:35 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]=20env=20=EA=B0=9C=EB=B0=9C=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=20=EB=B6=84=EB=A6=AC=ED=95=98=EA=B8=B0=20(#448)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: env 분리 * feat: build 명령어 분리 * fix: build 명령어 수정 --- .gitignore | 4 +++- package.json | 10 +++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 3b0b4037..816f994b 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,6 @@ dist-ssr *.sln *.sw? -.env \ No newline at end of file +.env +.env.makers +.env.sopt \ No newline at end of file diff --git a/package.json b/package.json index b68861c8..029afed8 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,12 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", - "build": "tsc && vite build", + "dev": "vite --mode makers", + "dev:development": "vite --mode development", + "dev:sopt": "vite --mode sopt", + "build": "tsc && NODE_ENV=makers vite build --mode makers", + "build:makers": "tsc && vite build --mode development", + "build:sopt": "tsc && NODE_ENV=sopt vite build --mode sopt", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview", "test": "vitest" @@ -63,4 +67,4 @@ "vite": "^5.2.0", "vitest": "^2.0.5" } -} +} \ No newline at end of file