1、安装依赖 stylus-converter
npm install -g stylus-converter
2、在存放样式的文件夹下执行
stylus-conver -i demo.styl -o demo.scss
3、效果
![](https://img.haomeiwen.com/i12392780/14c4a7c5ba80161c.png)
stylus-converter
npm install -g stylus-converter
stylus-conver -i demo.styl -o demo.scss
本文标题:将stylus样式转换成sass或less
本文链接:https://www.haomeiwen.com/subject/ivecidtx.html
网友评论