Last active
October 9, 2019 13:05
-
-
Save holyzfy/170929ad3928e8d6b8eecef0af0dab69 to your computer and use it in GitHub Desktop.
Sublime Text 3 配置SASS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preferences": { | |
"css.propertyEnd": ";", | |
"sass.propertyEnd": ";" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"selector": "source.sass, source.scss", | |
"line_regex": "Line ([0-9]+):", | |
"shell": true, | |
"env": { | |
"BROWSERSLIST": "> 1%, last 2 versions, Firefox ESR, ie >= 9" | |
}, | |
"osx": { | |
"cmd": ["sass --style=expanded --update $file:${file_path}/${file_base_name}.css && postcss ${file_path}/${file_base_name}.css --map --use autoprefixer --replace"], | |
"path": "/Users/zhaofuyun/.nvm/versions/node/v10.10.0/bin:$PATH" | |
}, | |
"windows": { | |
"cmd": ["sass", "--style", "expanded", "--update", "$file:${file_path}/${file_base_name}.css", "&&", "postcss", "${file_path}/${file_base_name}.css", "--map", "--use", "autoprefixer", "--replace"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scss.sublime-build
如果是通过nvm安装的nodejs,请在path字段里增加node的path,示例:
运行
which node
能取得路径