chore: 更新postcss.config.js文件为esm语法

This commit is contained in:
xiaoxian521
2023-11-10 14:21:17 +08:00
parent 5199a65088
commit 18158f8e0d
2 changed files with 5 additions and 2 deletions

12
postcss.config.js Normal file
View File

@@ -0,0 +1,12 @@
// @ts-check
/** @type {import('postcss-load-config').Config} */
export default {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
}
};