Answer the question
In order to leave comments, you need to log in
Why does css written in components end up in after build?
Hello. I assembled the vue component library using rollup, I import it into the application:
The button itself looks something like this, simplified for example:
import { VButton } from '@compnany/ui';
<template>
<button class="v-button">
<slot/>
</button>
</template>
<script>
export default {}
</script>
<style lang="postcss">
.v-button {
background-color: red;
}
.v-button:hover {
background-color: blue;
}
</style>
<style>
the page tag, and not into the css file. The project is deployed on vue-cli latest version. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question