Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- npm styled-reset
- typescript react
- dart 변수
- CSS
- nextjs .env
- react typescript
- API token
- 컨디셔널 렌더링
- nextjs 설치
- There isn’t anything to compare
- styled components
- fetch
- react
- rewrites
- next.js css
- ngrok설치
- react env
- ngrok실행
- SCSS
- nextjs
- github io
- API 토큰
- icon
- github
- bootstrap
- createGlobalStyle
- git lab
- input type=file
- Git
- getModifierState
Archives
- Today
- Total
꾸준히 성장하는 개발자
[React] vite 사용해보기 본문
Getting Started | Vite
Getting Started Overview Vite (French word for "quick", pronounced /vit/, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts: Vite is opinionated and comes wi
vitejs.dev
npm create vite@latest
터미널을 열고 위처럼 작성해주면
프로젝트의 이름을 무엇으로 할 건지 정하라고 나온다
그럼 프로젝트의 이름을 작성해주면 된다. 따로 적지 않으면 위에 있는
vite-project로 지어지게 된다.
위 상태에서 엔터를 치고 내려오면 어떤 framework를 사용할지 물어본다.
난 react를 사용할 거니까 react를 선택
그럼 아래처럼 나오는데 react를 할 때 typescript를 함께 할지에 관한 여부를 고르라고 나온다
선택을 하면 설치는 완료가 된다.
그럼 실행을 할 때는 이렇게 하라고 친절히 설명도 해준다.
폴더를 이동후
npm i 해주고 실행해주면 된다고 나온다.
cd vite-project
npm install
npm run dev
npm run dev까지 입력하고
잘 실행이 되는 것을 볼 수 있다.
여기서 다른 점은
위에 탭 부분이 다른 점, 실행시간이 매우 빠른 점을 볼 수 있다.
'React' 카테고리의 다른 글
[React] npm i path --save (0) | 2022.06.23 |
---|---|
.env 파일을 통한 환경변수 관리하기 (0) | 2022.06.22 |
[React Hook] useParams (0) | 2022.06.08 |
[React] styled-reset _2 ( createGlobalStyle 전역 스타일로 관리 ) (0) | 2022.06.07 |
[React] styled-reset _1 (npm i styled-reset) (0) | 2022.06.07 |