There was an error while loading. Please reload this page.
1 parent fd60994 commit 823d995Copy full SHA for 823d995
1 file changed
packages/@tailwindcss-vite/README.md
@@ -74,3 +74,21 @@ export default defineConfig({
74
],
75
})
76
```
77
+
78
+### TypeScript Usage
79
80
+When configuring Vite in TypeScript, `@tailwindcss/vite` provides both default and named exports, along with the `PluginOptions` type definition:
81
82
+```ts
83
+import tailwindcss, { type PluginOptions } from '@tailwindcss/vite'
84
+import { defineConfig } from 'vite'
85
86
+const options: PluginOptions = {
87
+ optimize: { minify: true },
88
+}
89
90
+export default defineConfig({
91
+ plugins: [tailwindcss(options)],
92
+})
93
+```
94
0 commit comments