Answer the question
In order to leave comments, you need to log in
Is it possible to set autoprefix for class names in vue-loader?
I have the names of all classes in the component begin with its name. For example:
<div class="component-name">
<div class="component-name-element-name"></div>
<div class="component-name-another-element-name"></div>
</div>
Answer the question
In order to leave comments, you need to log in
<template>
<div :class="$style.component">
<div :class="$style.element"></div>
<div :class="$style['another-element']"></div>
</div>
</template>
<style module>
.component {}
.element {}
.another-element {}
</style>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question