美文网首页
vue项目中使用scss/sass

vue项目中使用scss/sass

作者: 彬彬彬boboc | 来源:发表于2018-12-08 11:27 被阅读0次

1、安装scss 跟 scss-loader

npm install scss-loader scss --save-dev

使用

<style lang="scss" scoped>

    .Myfollow{

        font-size: 2rem;

        color: #ff0;

        .text{

            color: #000;

            font-size: 1rem;

        }

    }

</style>

2、安装node-sass 跟 sass-loader

npm install sass-loader node-sass --save-dev

相关文章

网友评论

      本文标题:vue项目中使用scss/sass

      本文链接:https://www.haomeiwen.com/subject/soxqhqtx.html