From e74ab949baa267cf07227e4e699866cda6054879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Fri, 17 May 2024 16:48:03 +0200 Subject: [PATCH] :bug: Include debug css in local dev only --- frontend/scripts/_helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/scripts/_helpers.js b/frontend/scripts/_helpers.js index e3423b0c4..0e284111d 100644 --- a/frontend/scripts/_helpers.js +++ b/frontend/scripts/_helpers.js @@ -303,6 +303,7 @@ async function generateSvgSprites() { } async function generateTemplates() { + const isDebug = process.env.NODE_ENV !== "production"; await fs.mkdir("./resources/public/", { recursive: true }); const translations = await readTranslations(); @@ -325,6 +326,7 @@ async function generateTemplates() { manifest: manifest, translations: JSON.stringify(translations), pluginRuntimeUri, + isDebug, }, partials, );