Skip to content

Commit

Permalink
GitHub pages - fix a case where is no bundle.css (#27948)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 authored Sep 9, 2024
1 parent ad19680 commit db5e7cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/demos/utils/create-bundles/React/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
{{additional_css}}
<link href="{{css_bundle_path}}" rel="stylesheet" />
{{css_bundle}}
<script src="../../../../scripts/{{init_theme}}"></script>
</head>
<body class="dx-viewport">
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/utils/create-bundles/Vue/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
{{additional_css}}
<link href="{{css_bundle_path}}" rel="stylesheet" />
{{css_bundle_path}}
<script src="../../../../scripts/{{init_theme}}"></script>
{{custom_css}}
</head>
Expand Down
4 changes: 2 additions & 2 deletions apps/demos/utils/create-bundles/helper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? `<link href="${css_bundle_path}" rel="stylesheet" />` : '',
demo_title: `${framework} ${demo.Widget} - ${demo.Title} - DevExtreme ${framework} Demo`,
dx_version: DX_Version,
js_bundle_path: getBundlePath(demoPath, 'bundle', '.js'),
Expand Down

0 comments on commit db5e7cc

Please sign in to comment.