phpstorm-file watcher

在项目中使用了sass,将scss编译成css的时候,每次都需要compass watch

netbeans产品带有file watcher功能

三大类

1,less,scss,sass into css,

2,TypeScript and CoffeeScript into Js,

3,Compress JavaScript and CSS code.

配置方法及步骤

scss into css的配置方法Ctrl+Alt+S 打开设置面板,找到并打开file watcher,点击面板右侧+,选中compass scss.她已经智能的把所有的参数都配置好了,可以快乐的玩耍了。

现在打开项目中的scss文件,随便做点改动,phpstorm会提示excusing "scss task",打开对应编译的文件,Great! It really works.

查看详细或者其他监听的配置方法请访问官网详细简介http://www.jetbrains.com/phpstorm/help/using-file-watchers.html

yiitest测试项目中的file watcher 没有问题 但是在测试git库中的susy时 run命令提示编译的scss文件必须在sass文件中,故将yiitest测试项目中的file watcher 配置拿出来以作参考

file types: scss files

scope: Project Files

program:D:serverRuby200-x64incompass.bat

Arguements:compile D:/xampp/htdocs/yii2test/frontend/web $UnixSeparators($FilePath$)$

Working directory:D:/xampp/htdocs/yii2test/frontend/web

output paths to refresh:D:/xampp/htdocs/yii2test/frontend/web

原文地址:https://www.cnblogs.com/c-and-unity/p/4488484.html