File tree 2 files changed +2
-8
lines changed
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import UnoCSS from "unocss/astro";
7
7
export default defineConfig ( {
8
8
site : "https://vim-jp.org" ,
9
9
base : "/ekiden" ,
10
- publicDir : "./public" ,
11
10
trailingSlash : "always" ,
12
11
integrations : [
13
12
UnoCSS ( {
Original file line number Diff line number Diff line change @@ -10,14 +10,9 @@ import {
10
10
transformerVariantGroup ,
11
11
} from "unocss" ;
12
12
import { createLocalFontProcessor } from "@unocss/preset-web-fonts/local" ;
13
- import { joinURL } from "ufo" ;
14
-
15
- import AstroConfig from "./astro.config.mjs" ;
16
13
17
14
const isDevelopment = process . env . NODE_ENV === "development" ;
18
15
19
- const fontAssetsDir = `assets/fonts` ;
20
-
21
16
export default defineConfig ( {
22
17
presets : [
23
18
presetUno ( ) , // base の設定。 https://unocss.dev/presets/uno
@@ -35,8 +30,8 @@ export default defineConfig({
35
30
"ekiden-mono" : [ "DejaVu Sans Mono" , "monospace" ] ,
36
31
} ,
37
32
processors : createLocalFontProcessor ( {
38
- fontAssetsDir : joinURL ( AstroConfig . publicDir as string , fontAssetsDir ) ,
39
- fontServeBaseUrl : joinURL ( AstroConfig . base as string , fontAssetsDir ) ,
33
+ fontAssetsDir : "public/assets/fonts" ,
34
+ fontServeBaseUrl : "/ekiden/assets/fonts" ,
40
35
} ) , // fontをgithub pagesでhostするためにlocalへとダウンロードする https://unocss.dev/presets/web-fonts#serve-fonts-locally
41
36
} ) , // web font を使うための設定。 https://unocss.dev/presets/web-fonts
42
37
] ,
You can’t perform that action at this time.
0 commit comments