Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion frontend/config/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export default defineConfig(({ mode }) => {
if (!id.includes('node_modules')) return;

if (id.includes('react-router')) return 'router';
if (id.includes('react-datepicker')) return 'dates';
// react-datepicker는 관리자 화면에서만 쓰므로 date-fns('dates')와 한 청크로 묶지 않는다.
// 묶이면 date-fns를 쓰는 초기 진입 경로 때문에 CSS까지 렌더 차단 리소스가 된다.
if (id.includes('react-datepicker')) return 'datepicker';
if (
id.includes('react-markdown') ||
id.includes('remark') ||
Expand Down
3 changes: 3 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css"
/>
<!-- Krona One은 관리자 로그인 화면 제목에서만 쓰므로 렌더를 막지 않게 비동기로 불러온다. -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Krona+One&display=swap"
media="print"
onload="this.media='all'"
/>
</head>

Expand Down
Loading