Skip to content

Creating a component library and CSS is ignored #10957

Discussion options

You must be logged in to vote
// src/index.ts
import './style.css';

export { default as SparklyText } from './components/VueSparklyText.vue';
<script lang="ts" setup>
import SparklyText from 'vue-sparkly-text';
</script>

<template>
  <p>Lorem ipsum dolor <SparklyText>sparkly text</SparklyText> sit amet.</p>
</template>

or

.
├── package.json
└── style.css
<script lang="ts" setup>
import 'vue-sparkly-text/style.css';
import SparklyText from 'vue-sparkly-text';
</script>

<template>
  <p>Lorem ipsum dolor <SparklyText>sparkly text</SparklyText> sit amet.</p>
</template>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LuzAramburo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants