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>

浙公网安备 33010602011771号