Skip to content

Commit

Permalink
fix: we need to fix those paths (#227)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mfranzke authored Sep 23, 2022
1 parent 0eec2f6 commit eda8aa1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
<link href="css/db-ui-core.vars.css" rel="stylesheet" />
<style>
nav.sidebar-container {
background-color: var(--db-color-cool-gray-100);
Expand Down
4 changes: 2 additions & 2 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Enables iframe resizing within the Marketingportal -->
<script src="static/js/iframeresizer.contentwindow.min.js"></script>
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
<script src="js/iframeresizer.contentwindow.min.js"></script>
<link href="css/db-ui-core.vars.css" rel="stylesheet" />

<style>
body,
Expand Down
4 changes: 2 additions & 2 deletions doc/howto-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ dest: 'js'

{
src: `node_modules/@db-ui/core/dist/css/{yourTheme}/db-ui-core.vars.css`,
dest: 'static/css/db-ui-core.vars.css'
dest: 'css/db-ui-core.vars.css'
}
```

and for your import use the vars file:

```html
<link href="static/css/db-ui-core.vars.css" rel="stylesheet" />
<link href="css/db-ui-core.vars.css" rel="stylesheet" />
```

### How to use Events
Expand Down
4 changes: 2 additions & 2 deletions packages/db-ui-elements-stencil/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ export const config: Config = {
src: `${getWWWPath()}/node_modules/@db-ui/core/dist/css${
getTheme() ? '/' + getTheme() : ''
}/db-ui-core.vars.css`,
dest: 'static/css/db-ui-core.vars.css'
dest: 'css/db-ui-core.vars.css'
},
{
src: '../../../node_modules/iframe-resizer/js/iframeResizer.contentWindow.min.js',
dest: 'static/js/iframeresizer.contentwindow.min.js'
dest: 'js/iframeresizer.contentwindow.min.js'
}
],
serviceWorker: null // disable service workers
Expand Down

0 comments on commit eda8aa1

Please sign in to comment.