This commit is contained in:
KuroSago 2025-04-29 15:30:12 +08:00
parent 9055cc1867
commit ab83056077
3 changed files with 18 additions and 8 deletions

View File

@ -1,6 +0,0 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -0,0 +1,15 @@
import config from '.';
export default {
plugins: {
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {}),
// Specifying the config is not necessary in most cases, but it is included
autoprefixer: {},
// 修复 element-plus 和 ant-design-vue 的样式和tailwindcss冲突问题
'postcss-antd-fixes': { prefixes: ['ant', 'el'] },
'postcss-import': {},
'postcss-preset-env': {},
tailwindcss: { config },
'tailwindcss/nesting': {},
},
};

View File

@ -1,4 +1,5 @@
/** @type {import('tailwindcss').Config} */
import type { Config } from 'tailwindcss'
export default {
content: [
"./index.html",
@ -8,4 +9,4 @@ export default {
extend: {},
},
plugins: [],
}
} satisfies Config