Skip to content

On custom element 'link css' does not build css. #10561

Discussion options

You must be logged in to vote

I fix it.
if you import style with ?url, css will build.

<template>
  <link rel="stylesheet" :href="url" />
  <div class="red">
    <h1>red</h1>
  </div>
</template>
<script lang="ts" setup>
import url from "./style.css?url"
</script>

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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