vignette/apps/web/src/main.tsx
Yun Chan 5c5b66d0f6 웹 글꼴을 글자 범위별 분할본으로 바꾸고 2MB 미리 받기를 제거
첫 접속 때 PretendardVariable.woff2(2,057,688 bytes)를 최우선으로 받던 것을
Pretendard Variable 공식 92분할본(unicode-range)으로 바꿔 로그인 화면 글꼴
전송량을 208,336 bytes로 줄인다. 글꼴 이름·굵기 범위·font-display는 그대로이고
옛 전체 글꼴 파일은 이전 세대 CSS 참조 때문에 남긴다.
2026-10-25 23:13:44 +09:00

28 lines
774 B
TypeScript

import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
// 스타일은 여기서 1회 import (글꼴 → 토큰 → 전역 → 컴포넌트 순).
import "./styles/fonts.css";
import "./styles/tokens.css";
import "./styles/global.css";
import "./components/ui/ui.css";
import "./components/shell/shell.css";
import "./components/auth/auth-shell.css";
import App from "./App";
import { installChunkRecovery } from "./lib/chunkRecovery";
import { initTheme } from "./lib/theme";
installChunkRecovery();
initTheme();
const rootEl = document.getElementById("root");
if (!rootEl) {
throw new Error("#root 엘리먼트를 찾을 수 없습니다 (index.html 확인).");
}
createRoot(rootEl).render(
<StrictMode>
<App />
</StrictMode>,
);