Skip to content

Commit 5aa1e77

Browse files
committed
use plugin
1 parent 818c2b0 commit 5aa1e77

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

app/bunfig.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[serve.static]
2+
plugins = ["bun-plugin-tailwind"]

app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"@types/lodash": "4.17.14",
1414
"@types/react": "19.0.8",
1515
"@types/react-dom": "19.0.3",
16+
"bun-plugin-tailwind": "0.0.14",
1617
"lodash": "4.17.21",
1718
"react": "19.0.0",
1819
"react-dom": "19.0.0",
@@ -28,8 +29,8 @@
2829
"vite": "6.0.11"
2930
},
3031
"scripts": {
31-
"dev": "NODE_ENV=development bun --hot ./server.ts",
32-
"start": "bun ./server.ts",
32+
"dev": "bun --hot ./server.ts",
33+
"start": "AWS_REGION=us-west-2 bun ./server.ts",
3334
"test": "nx docker comparadise && nx test:e2e frontend"
3435
}
3536
}

app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
rel="stylesheet"
99
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
1010
/>
11-
<script src="https://cdn.tailwindcss.com"></script>
11+
<link rel="stylesheet" href="tailwindcss" />
1212
</head>
1313
<body>
1414
<div id="root"></div>

app/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ const server = serve({
1515
trpcHandler(request, response) ??
1616
new Response('Not found', { status: 404 })
1717
);
18-
},
19-
development: true
18+
}
2019
});
2120

2221
console.log(`Server running at ${server.url}`);

bun.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)