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 |
Tags
- 안드로이드
- android ktor
- 스피너
- 시행착오
- video caching
- Python
- ktor client
- android
- DiffUtil.ItemCallback
- build with ai
- doc2vec
- ktor api call
- map
- exoplayer cache
- Zsh
- android custom view
- FastAPI
- getChangePayload
- kotlin collection
- ExoPlayer
- android exoplayer
- list map
- ListAdapter DiffUtil
- ChatGPT
- llm
- AWS EC2
- kotlin list
- 유튜브
- ListAdapter
- 유튜브 요약
Archives
- Today
- Total
버튼 수집상
[웹] Svelte 를 찍먹해봤다. 본문
여타 프론트엔드 프레임워크처럼 Node.js로 돌리는 줄 알았는데,
그건 개발단계에서만 그렇고, 배포할 때는 .svelte 확장자 파일을 전부 css, js 파일로 빌드해서 정적파일로 배포할 수 있다고 한다.
그래서 FastAPI + uvicorn 환경에서 정적파일을 리턴하는 식으로 FrontEnd를 구성할 수도 있었다.
import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
#html 파일을 띄우는데 필요한 assets
app.mount("/assets",StaticFiles(directory="assets"))
#html 파일 경로 리턴
app.mount("/",StaticFiles(directory="pages",html=True))
즉, Svelte는 React나 Vue.js와 다르게 가상DOM을 지원하지 않는다.
728x90
'TIL - 웹개발' 카테고리의 다른 글
[웹] 노션으로 이슈 정리하기 - 링크없이 git diff 내역 그리기 (0) | 2024.06.09 |
---|