How vue-cli configures cssModules?


<template>
  <div class="$style.share-list">
  </div>
</template>
<style lang="scss" module>
.share-list {color:red;}
</style>

the above code is NAN, at run time. I wonder if CSS Modules is misconfigured?

Mar.28,2021

already know why
cannot be written as $style.share-list
as $style ['share-list']

Menu