vue-cli构建项目使用 less

安装:

npm install less less-loader --save-dev

style 标注less

<style lang="less">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  img {
    width: 100px;
  }
}
</style>

 

posted @ 2018-07-19 15:44  samirah  阅读(246)  评论(0)    收藏  举报