用于 webstorm 的 Sass 文件观察器 [英] Sass filewatcher for webstorm
问题描述
我正在尝试在 NodeJS 项目中使用 sass,这是我与 nodejs 一起安装的库
for Win,
gem install sass
、C:\Ruby200\bin\sass.bat
I am trying to use sass in a NodeJS project and this is the library I installed with nodejs
https://www.npmjs.org/package/node-sass
I am using webstorm for this project and I can't get the Sass file watcher to work.
Even after I save the filewatcher and click "Ok", the filewatcher does not work. When I open the settings to check what's wrong the filewatcher has been unchecked. Here are the filewatcher settings:
The node-sass module is installed as a global module so the node-sass command works.
Most definitely path to .cmd is wrong as lena and lazy one suggested. Whenever watcher unchecks in Web/Phpstorm its probably because of invalid path. If you still have trouble with node-sass you could always go Ruby way.
- Download and install Ruby for Win,
- Install Sass via command prompt with
gem install sass
, - In Web/Phpstorm put "Program" path to sass.bat (remember node-sass.cmd?), e.g.
C:\Ruby200\bin\sass.bat
这篇关于用于 webstorm 的 Sass 文件观察器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!