update
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
// tailwind.config.js
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: [
|
||||
"./src/**/*.{vue,js,ts,jsx,tsx}", // 根据你的项目结构调整路径
|
||||
],
|
||||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}"],
|
||||
theme: {
|
||||
extend: {
|
||||
screens: {
|
||||
'375': '375px', // 自定义屏幕大小
|
||||
},
|
||||
},
|
||||
extend: {}
|
||||
},
|
||||
plugins: [],
|
||||
presets: [
|
||||
require("tailwindcss-rem2px-preset").createPreset({
|
||||
// 32 意味着 1rem = 32rpx
|
||||
fontSize: 32,
|
||||
// 转化的单位,可以变成 px / rpx
|
||||
unit: "rpx"
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user