Skip to content

Commit 806288d

Browse files
committed
chore: Tailwind CSSを利用するための設定を追加
1 parent 3fe74d7 commit 806288d

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

website/src/components/templates/BaseTemplate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
125125
`,
126126
}}
127127
/>
128+
<link href="/src/styles.css" rel="stylesheet"></link>
128129
</head>
129130

130131
<body class="no-js docs has-outline">

website/src/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import "tailwindcss";

website/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"jsx": "react-jsx",
55
"jsxImportSource": "hono/jsx",
66
"resolveJsonModule": true,
7-
"esModuleInterop": true
7+
"esModuleInterop": true,
8+
"module": "ESNext",
9+
"moduleResolution": "bundler"
810
}
911
}

website/vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from "vite";
2+
import tailwindcss from '@tailwindcss/vite'
23
import ssg from "@hono/vite-ssg";
34
import { defaultOptions } from "@hono/vite-dev-server";
45
import devServer from "@hono/vite-dev-server";
@@ -14,6 +15,7 @@ symlinkSync(assetsDocsPath, publicAssetsDocsPath, "dir");
1415

1516
export default defineConfig({
1617
plugins: [
18+
tailwindcss(),
1719
ssg(),
1820
devServer({
1921
entry: "src/index.tsx",

0 commit comments

Comments
 (0)