Skip to content

Commit

Permalink
Merge pull request #75 from it-at-m/72-fix-style-exports
Browse files Browse the repository at this point in the history
72 fix style exports
  • Loading branch information
FabianWilms authored May 14, 2024
2 parents d502be1 + 10998a3 commit 59b72d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions docs/GettingStarted.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,29 @@ export default defineConfig({
});
```

In your Webcomponents root you should import the MDE5-CSS and SVG-Sprite for MDE5-Icons:
In your Webcomponents root you should import the MDE5-CSS and SVG-Sprite for MDE5-Icons, as well as the optional custom-icons SVG-Sprite:

```html
<script
lang="ts"
setup
>
import sprites from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
import mucIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
import customIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/custom-icons.svg?raw";
</script>

<template>
<div>
<svg
style="display: none;"
v-html="sprites"
></svg>
<div v-html="mucIconsSprite"></div>
<div v-html="customIconsSprite"></div>
<...>
</div>
</template>

<style>
@import "@muenchen/muc-patternlab-vue/dist/assets/temporary/muenchende-style.css";
@import "@muenchen/muc-patternlab-vue/dist/assets/temporary/custom-style.css";
@import "@muenchen/muc-patternlab-vue/dist/style.css";
</style>
```

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@
"types": "./dist/types/index.d.ts",
"import": "./dist/muc-patternlab-vue.es.js"
},
"./dist/assets/temporary/muc-icons.svg": "./dist/assets/temporary/muc-icons.svg",
"./dist/assets/temporary/custom-icons.svg": "./dist/assets/temporary/custom-icons.svg",
"./dist/style.css": "./dist/style.css",
"./dist/assets/temporary/custom-style.css": "./dist/assets/temporary/custom-style.css",
"./dist/assets/temporary/muenchende-style.css": "./dist/assets/temporary/muenchende-style.css",
"./dist/assets/temporary/muenchende-fontface.css": "./dist/assets/temporary/muenchende-fontface.css",
"./dist/assets/temporary/muenchende-style.css": "./dist/assets/temporary/muenchende-style.css"
"./dist/assets/temporary/muc-icons.svg": "./dist/assets/temporary/muc-icons.svg",
"./dist/assets/temporary/custom-icons.svg": "./dist/assets/temporary/custom-icons.svg"
},
"files": [
"src",
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { type App } from "vue";

import * as components from "./components";

import "../public/assets/temporary/muenchende-style.css";

function install(app: App) {
for (const key in components) {
// @ts-expect-error
Expand Down

0 comments on commit 59b72d0

Please sign in to comment.