From db5e7ccb61a733edc7f04b56c9bcdacc660d1fcb Mon Sep 17 00:00:00 2001 From: ivanblinov2k17 Date: Mon, 9 Sep 2024 15:03:16 +0400 Subject: [PATCH] GitHub pages - fix a case where is no bundle.css (#27948) --- apps/demos/utils/create-bundles/React/template.html | 2 +- apps/demos/utils/create-bundles/Vue/template.html | 2 +- apps/demos/utils/create-bundles/helper/index.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/demos/utils/create-bundles/React/template.html b/apps/demos/utils/create-bundles/React/template.html index 7d9fafd53a83..917caf104789 100644 --- a/apps/demos/utils/create-bundles/React/template.html +++ b/apps/demos/utils/create-bundles/React/template.html @@ -6,7 +6,7 @@ {{additional_css}} - + {{css_bundle}} diff --git a/apps/demos/utils/create-bundles/Vue/template.html b/apps/demos/utils/create-bundles/Vue/template.html index 7f800b630cb5..fb130001fb30 100644 --- a/apps/demos/utils/create-bundles/Vue/template.html +++ b/apps/demos/utils/create-bundles/Vue/template.html @@ -6,7 +6,7 @@ {{additional_css}} - + {{css_bundle_path}} {{custom_css}} diff --git a/apps/demos/utils/create-bundles/helper/index.ts b/apps/demos/utils/create-bundles/helper/index.ts index bcf082392fbf..432d21893202 100644 --- a/apps/demos/utils/create-bundles/helper/index.ts +++ b/apps/demos/utils/create-bundles/helper/index.ts @@ -113,9 +113,9 @@ export const createDemoLayout = (demo: Demo, framework: Framework) => { if (framework === 'Vue') { hasCustomCss = copyVueCustomCss(demo); } - + const css_bundle_path = getBundlePath(demoPath, 'bundle', '.css') const options = { - css_bundle_path: getBundlePath(demoPath, 'bundle', '.css'), + css_bundle: css_bundle_path ? `` : '', demo_title: `${framework} ${demo.Widget} - ${demo.Title} - DevExtreme ${framework} Demo`, dx_version: DX_Version, js_bundle_path: getBundlePath(demoPath, 'bundle', '.js'),