Skip to content

Commit eda8aa1

Browse files
authored
fix: we need to fix those paths (#227)
* fix: we need to fix those paths we need to ensure that we copy the CSS file to the same structure as we've got them from * chore: slightly simplified this * fix: we don't need the theme in this path * fix: destination path always needs to be the same
1 parent 0eec2f6 commit eda8aa1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.storybook/manager-head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
1+
<link href="css/db-ui-core.vars.css" rel="stylesheet" />
22
<style>
33
nav.sidebar-container {
44
background-color: var(--db-color-cool-gray-100);

.storybook/preview-head.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Enables iframe resizing within the Marketingportal -->
2-
<script src="static/js/iframeresizer.contentwindow.min.js"></script>
3-
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
2+
<script src="js/iframeresizer.contentwindow.min.js"></script>
3+
<link href="css/db-ui-core.vars.css" rel="stylesheet" />
44

55
<style>
66
body,

doc/howto-javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ dest: 'js'
6060

6161
{
6262
src: `node_modules/@db-ui/core/dist/css/{yourTheme}/db-ui-core.vars.css`,
63-
dest: 'static/css/db-ui-core.vars.css'
63+
dest: 'css/db-ui-core.vars.css'
6464
}
6565
```
6666

6767
and for your import use the vars file:
6868

6969
```html
70-
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
70+
<link href="css/db-ui-core.vars.css" rel="stylesheet" />
7171
```
7272

7373
### How to use Events

packages/db-ui-elements-stencil/stencil.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ export const config: Config = {
130130
src: `${getWWWPath()}/node_modules/@db-ui/core/dist/css${
131131
getTheme() ? '/' + getTheme() : ''
132132
}/db-ui-core.vars.css`,
133-
dest: 'static/css/db-ui-core.vars.css'
133+
dest: 'css/db-ui-core.vars.css'
134134
},
135135
{
136136
src: '../../../node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js',
137-
dest: 'static/js/iframeresizer.contentwindow.min.js'
137+
dest: 'js/iframeresizer.contentwindow.min.js'
138138
}
139139
],
140140
serviceWorker: null // disable service workers

0 commit comments

Comments
 (0)