首页 > Web开发 > 详细

vue2 不识别scss,stylus语法解决方法

时间:2017-07-20 12:34:16      阅读:635      评论:0      收藏:0      [点我收藏+]

vue中布局使用scss,stylus,会使代码变得非常简洁

<style lang="stylus">
  .goods
    display flex
    position absolute
    top 174px
    bottom 46px
    width 100%
    overflow hidden
    .menu-wrapper
      flex 0 0 80px
      width 80px
      background #f3f5f7
      margin-top: 2px;
      .menu-item-selected
        background white
        font-weight 700
        margin-top -1px
</style>

  

需要这么做:

步骤1:<style lang="stylus"></style>

步骤2: cnpm install stylus stylus-loader --save

 

vue2 不识别scss,stylus语法解决方法

原文:http://www.cnblogs.com/zph666/p/7210454.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!