diff --git a/src/assets/fonts/AppleSDGothicNeo-Bold.ttf b/public/fonts/AppleSDGothicNeo-Bold.ttf similarity index 100% rename from src/assets/fonts/AppleSDGothicNeo-Bold.ttf rename to public/fonts/AppleSDGothicNeo-Bold.ttf diff --git a/src/assets/fonts/AppleSDGothicNeo-Medium.ttf b/public/fonts/AppleSDGothicNeo-Medium.ttf similarity index 100% rename from src/assets/fonts/AppleSDGothicNeo-Medium.ttf rename to public/fonts/AppleSDGothicNeo-Medium.ttf diff --git a/src/assets/fonts/AppleSDGothicNeo-Regular.ttf b/public/fonts/AppleSDGothicNeo-Regular.ttf similarity index 100% rename from src/assets/fonts/AppleSDGothicNeo-Regular.ttf rename to public/fonts/AppleSDGothicNeo-Regular.ttf diff --git a/src/assets/fonts/AppleSDGothicNeo-SemiBold.ttf b/public/fonts/AppleSDGothicNeo-SemiBold.ttf similarity index 100% rename from src/assets/fonts/AppleSDGothicNeo-SemiBold.ttf rename to public/fonts/AppleSDGothicNeo-SemiBold.ttf diff --git a/src/assets/fonts/TT Norms Pro Bold.otf b/public/fonts/TT Norms Pro Bold.otf similarity index 100% rename from src/assets/fonts/TT Norms Pro Bold.otf rename to public/fonts/TT Norms Pro Bold.otf diff --git a/src/assets/fonts/TT Norms Pro Medium.otf b/public/fonts/TT Norms Pro Medium.otf similarity index 100% rename from src/assets/fonts/TT Norms Pro Medium.otf rename to public/fonts/TT Norms Pro Medium.otf diff --git a/src/assets/fonts/TT Norms Pro Regular.otf b/public/fonts/TT Norms Pro Regular.otf similarity index 100% rename from src/assets/fonts/TT Norms Pro Regular.otf rename to public/fonts/TT Norms Pro Regular.otf diff --git a/src/styles/global.ts b/src/styles/global.ts index c0640d7..0d0b4c5 100644 --- a/src/styles/global.ts +++ b/src/styles/global.ts @@ -11,7 +11,7 @@ const GLOBALSTYLE = css` font-family: 'Apple SD Gothic Neo'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/AppleSDGothicNeo-Bold.ttf') format('truetype'); + src: url('/fonts/AppleSDGothicNeo-Bold.ttf') format('truetype'); unicode-range: U+AC00-D7A3; } @@ -20,7 +20,7 @@ const GLOBALSTYLE = css` font-family: 'Apple SD Gothic Neo'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/AppleSDGothicNeo-SemiBold.ttf') format('truetype'); + src: url('/fonts/AppleSDGothicNeo-SemiBold.ttf') format('truetype'); unicode-range: U+AC00-D7A3; } @@ -29,7 +29,7 @@ const GLOBALSTYLE = css` font-family: 'Apple SD Gothic Neo'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/AppleSDGothicNeo-Medium.ttf') format('truetype'); + src: url('/fonts/AppleSDGothicNeo-Medium.ttf') format('truetype'); unicode-range: U+AC00-D7A3; } @@ -38,7 +38,7 @@ const GLOBALSTYLE = css` font-family: 'Apple SD Gothic Neo'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/AppleSDGothicNeo-Regular.ttf') format('truetype'); + src: url('/fonts/AppleSDGothicNeo-Regular.ttf') format('truetype'); unicode-range: U+AC00-D7A3; } @@ -48,7 +48,7 @@ const GLOBALSTYLE = css` font-family: 'TT Norms Pro'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/TT Norms Pro Bold.otf') format('opentype'); + src: url('/fonts/TT Norms Pro Bold.otf') format('opentype'); unicode-range: U+0041-005A, U+0061-007A, U+0030-0039; } @@ -57,7 +57,7 @@ const GLOBALSTYLE = css` font-family: 'TT Norms Pro'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/TT Norms Pro Medium.otf') format('opentype'); + src: url('/fonts/TT Norms Pro Medium.otf') format('opentype'); unicode-range: U+0041-005A, U+0061-007A, U+0030-0039; } @@ -66,7 +66,7 @@ const GLOBALSTYLE = css` font-family: 'TT Norms Pro'; font-style: normal; letter-spacing: 0; - src: url('/src/assets/fonts/TT Norms Pro Regular.otf') format('opentype'); + src: url('/fonts/TT Norms Pro Regular.otf') format('opentype'); unicode-range: U+0041-005A, U+0061-007A, U+0030-0039; } diff --git a/vite.config.ts b/vite.config.ts index f078a8a..7ca5d5d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,4 +16,7 @@ export default defineConfig({ }), ], assetsInclude: ['**/*.ttf', '**/*.otf'], + build: { + assetsDir: 'assets', + }, });