vue.js中如何使用scss

要使用 <style lang="sass"> 請記得要裝相依的套件

$ npm install sass-loader node-sass vue-style-loader --D


无需为scss/sass配置loader,

使用scss:

<style lang="scss" scoped>
.swiper-tab-item {
transition: all $time;
font-size: 18px;
height: 42px;
display: inline-block;
color: #777777;
}
</style> 

来源   https://blog.csdn.net/u011649691/article/details/82626588

原文地址:https://www.cnblogs.com/shy1766IT/p/11080618.html