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

posted @ 2019-06-25 06:48  BloggerSb  阅读(466)  评论(0编辑  收藏  举报