M
M
Mark Golubev2015-03-11 16:33:28
phpstorm
Mark Golubev, 2015-03-11 16:33:28

How to set up Stylus File watcher in PHPStorm?

There is a project with three or four levels of nesting of *.styl files in each other.
1. In the 7th version of PHPStorm, when compiling any child-styl file, the very first level was also compiled. After upgrading to version 8, only the modified child-style file is compiled. How to auto-configure top-level recompilation?
2. How to set up compilation so that the final *.css is created not in the folder with stylus files ( /dir/styl/ ), but in the child folder ( / dir/ ) ?
I use PHPStorm, the latest Stylus plugin, NodeJS, etc.
Screen of Stylus plugin settings:
a12ff02332c44f7d829f35ec0ddc6bec.png
I will send +10 to karma, the person who will help me solve my problems :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daniil Kostin, 2015-03-26
@Golubev_Mark

In arguments, write everything you need $FileName$ --out $FileParentDir$/css/$FileNameWithoutExtension$.css
If it doesn't work, check if there are spaces in the path to stylus
The bottom line is needed to update the directories where the files go to see them immediately rather than close, open.

A
Adamos, 2015-03-11
@Adamos

For example, putting "../" at the beginning of "Output paths to refresh" is not an option?

V
Vladimir, 2018-01-01
@Casufi

Specifically, your code does not work, I don’t really understand why
https://jsfiddle.net/uL9tb4jk/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question