-
Notifications
You must be signed in to change notification settings - Fork 3
/
tailwind.config.js
33 lines (33 loc) · 885 Bytes
/
tailwind.config.js
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
31
32
33
const cssMacro = require('weapp-tailwindcss/css-macro')
// 基础配置,无需任何preset
// https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/blob/main/demo/uni-app/tailwind.config.js
/** @type {import('@types/tailwindcss/tailwind-config').TailwindConfig} */
module.exports = {
content: ['public/index.html', './src/**/*.{vue,js,ts,jsx,tsx,wxml}'],
theme: {
extend: {},
},
variants: {},
plugins: [
// https://weapp-tw.icebreaker.top/docs/quick-start/uni-app-css-macro
cssMacro({
variantsMap: {
wx: 'MP-WEIXIN',
'-wx': {
value: 'MP-WEIXIN',
negative: true,
},
// mv: {
// value: 'H5 || MP-WEIXIN'
// },
// '-mv': {
// value: 'H5 || MP-WEIXIN',
// negative: true
// }
},
}),
],
corePlugins: {
preflight: false,
},
}