vue中使用sass

xiaoxiao2021-02-28  49

1.npm install node-sass --save-dev

2.npm install sass-loader --save-dev

3.webpack.base.config.js的rules中配置

{

   test:/\.scss$/,

    loaders:["style","css","sass"]

}

4.<style lang="scss"></style>

转载请注明原文地址: https://www.6miu.com/read-2624111.html

最新回复(0)