Skip to content

Commit 005438c

Browse files
committed
Setup postcss and tailwind on vite
1 parent 68b3fb5 commit 005438c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

site/vite.config.mts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as path from "node:path";
33
import { visualizer } from "rollup-plugin-visualizer";
44
import { defineConfig, type PluginOption } from "vite";
55
import checker from "vite-plugin-checker";
6+
import tailwindcss from "tailwindcss"
67

78
const plugins: PluginOption[] = [
89
react(),
@@ -21,6 +22,11 @@ if (process.env.STATS !== undefined) {
2122

2223
export default defineConfig({
2324
plugins: plugins,
25+
css: {
26+
postcss: {
27+
plugins: [tailwindcss],
28+
},
29+
},
2430
publicDir: path.resolve(__dirname, "./static"),
2531
build: {
2632
outDir: path.resolve(__dirname, "./out"),

0 commit comments

Comments
 (0)