Sass filewatcher for webstorm

前端 未结 10 814
挽巷
挽巷 2020-12-30 12:30

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 t

10条回答
  •  离开以前
    2020-12-30 13:03

    Phpstorm 8.0.3 Windows 7(x64) node-sass installed globally working example

    Another key problem from the original post besides point to .cmd is replacing : with forward slash, node doesn't understand the colon syntax and expects a forward slash instead for the Arguments box. Found answer from below link

    http://www.wonderlandlabs.com/blog/scss_in_webstorm

    Note in the above example for windows you need to point to the cmd file ie "path to global npm packages/node-sass.cmd"

    Also he has the switches for ruby sass such as --no-cache which won't work with node as lena pointed out, the node-sass switches should work fine, but haven't tested

    Here is a working config

    node-sass filewatcher

    enter image description here

提交回复
热议问题