G
G
gial2014-05-01 15:42:49
webstorm
gial, 2014-05-01 15:42:49

How to setup file watcher in WebStorm for Stylus (windows OS)?

I couldn't properly connect the compilation of stylus files to css in WebStorm using file watcher . The manual says that for Windows you need to connect stylus.bat , but there is no such file anywhere ((There is just a stylus file , but, of course, WebStorm swears at it. As a result, I did it using node.exe and self-made .cmd But I want to figure it out how to do it right and beautiful.


@"%~dp0bin\node.exe" "%~dp0bin\stylus" %*

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Velichko, 2014-05-07
@gial

Just put the stylus globally
and stylus.cmd will be created in the node.js folder, it will be available in the console
with this code

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\stylus\bin\stylus" %*
) ELSE (
  node  "%~dp0\node_modules\stylus\bin\stylus" %*
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question