stylus在angular里的基础使用

1.全局安装stylus:

npm install stylus -g 

2.在css文件夹下新建css,stylus文件:(文件前缀尽量一致)

index.css
index.styl

3.:需通过cmd命令进入到css文件里输入以下命令监听文件

//index.styl文件发生变化时,在index.styl里写的样式就会输出到index.css文件里
    stylus -w index.styl -o index.css

猜你喜欢

转载自blog.csdn.net/qq_43579525/article/details/83904184