feat: 添加cssnano,打包时压缩css体积

This commit is contained in:
xiaoxian521
2022-09-08 17:23:48 +08:00
parent 392105e820
commit 594f9b98ab
3 changed files with 5 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ module.exports = {
plugins: {
"postcss-import": {},
tailwindcss: {},
autoprefixer: {}
autoprefixer: {},
...(process.env.NODE_ENV === "production" ? { cssnano: {} } : {})
}
};