From 59f12ba070669ae7723cbc55580b67a4fd3e4b85 Mon Sep 17 00:00:00 2001 From: d3v1l0n Date: Mon, 23 Dec 2024 22:43:23 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20perf:=20production=20level?= =?UTF-8?q?=20nano=20css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postcss.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/postcss.config.js b/postcss.config.js index 2aa7205d..9a2bc0b1 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -2,5 +2,12 @@ export default { plugins: { tailwindcss: {}, autoprefixer: {}, + ...(process.env.NODE_ENV === 'production' + ? { + cssnano: { + preset: 'default', + }, + } + : {}), }, };