This Question is Answered

2 "helpful" answers available (2 pts)
4 Replies Last post: Jan 30, 2013 3:37 PM by Timofey Marochkin  
Timofey Marochkin Newbie 3 posts since
Jan 30, 2013
Currently Being Moderated

Jan 30, 2013 12:08 PM

How to change slashes direction in External tool macros

Hello, i'm trying to use external tools to compile SASS into CSS, and i want SASS to watch my project directory.

If I want this to work fine i need forward slashes in my path parameters, but macros allows me to insert only backslasehs.

So, is there any way to change slashes direction?

Thanks.

Fedor Korotkov Newbie 74 posts since
Feb 23, 2012
Currently Being Moderated
Jan 30, 2013 1:06 PM in response to: Timofey Marochkin
Re: How to change slashes direction in External tool macros

Hi Timofey,

 

I assume you are using windows and set parameters to "--watch $ProjectFileDir$\sass:$ProjectFileDir$\compiled". You should set working directory to $ProjectFileDir$(see screenshot).

 

FYI the latest EAP WebStorm 6 build includes new feauter called Background Tasks. WebStorm will suggest you adding predefined task for SASS files that compiles *.sass files into *.css on changes. You can check how it works for TypeScript in this post.

Attachments:
Fedor Korotkov Newbie 74 posts since
Feb 23, 2012
Currently Being Moderated
Jan 30, 2013 3:24 PM in response to: Timofey Marochkin
Re: How to change slashes direction in External tool macros

What did you choose? An external tool or background task?

More Like This

  • Retrieving data ...