From d4fe453840a806c6c3eefd36c407f2f263e1df1c Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:31:31 +0300 Subject: [PATCH] R: Disable tailwind optimizations for local builds --- rsconcept/frontend/tailwind.config.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rsconcept/frontend/tailwind.config.js b/rsconcept/frontend/tailwind.config.js index b8648026..e89c5dc7 100644 --- a/rsconcept/frontend/tailwind.config.js +++ b/rsconcept/frontend/tailwind.config.js @@ -23,7 +23,11 @@ export default { extend: {} }, plugins: [], - experimental: { - optimizeUniversalDefaults: true - } + ...(process.env.NODE_ENV === 'production' + ? { + experimental: { + optimizeUniversalDefaults: true + } + } + : {}) };