Skip to content

Commit

Permalink
[Feat] env 개발 환경 분리하기 (#448)
Browse files Browse the repository at this point in the history
* feat: env 분리

* feat: build 명령어 분리

* fix: build 명령어 수정
  • Loading branch information
eonseok-jeon authored Sep 24, 2024
1 parent c62d027 commit c349bb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ dist-ssr
*.sln
*.sw?

.env
.env
.env.makers
.env.sopt
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -63,4 +67,4 @@
"vite": "^5.2.0",
"vitest": "^2.0.5"
}
}
}

0 comments on commit c349bb1

Please sign in to comment.