forked from 1997liuyh-boop/uni-app-hbuilderx-tailwindcss-v4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
30 lines (30 loc) · 788 Bytes
/
vite.config.ts
File metadata and controls
30 lines (30 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
import tailwindcss from '@tailwindcss/postcss'
import path from 'path'
export default defineConfig({
plugins: [
uni(),
UnifiedViteWeappTailwindcssPlugin(
{
rem2rpx: true,
tailwindcss: {
v4: {
base: __dirname,
cssEntries: path.resolve(__dirname, 'main.css')
}
}
}
)
],
css: {
postcss: {
plugins: [
tailwindcss({
base: __dirname
})
]
}
}
});