首页 > 技术文章 > SASS

yangpiaofan 2017-10-20 14:22 原文

//单文件转换命令

sass demo.scss:demo.css

//单文件监听命令

sass --watch demo.scss:demo.css

//如果你有很多的sass文件的目录,你也可以告诉sass监听整个目录:

sass --watch sass/:css/

嵌套输出方式 nested,在编译的时候带上参数“ --style nested”
sass --watch test.scss:test.css --style nested

展开输出方式 expanded,在编译的时候带上参数“ --style expanded”
sass --watch test.scss:test.css --style expanded

紧凑输出方式 compact,在编译的时候带上参数“ --style compact”
sass --watch test.scss:test.css --style compact

压缩输出方式 compressed,在编译的时候带上参数“ --style compressed”
sass --watch test.scss:test.css --style compressed

推荐阅读