According the IntelliJ IDEA documentation, the Stylus files watcher setup is:
- In the Settings/Preferences dialog click File Watchers under Tools. The File Watchers page that opens shows the list of already configured File Watchers.
- Click the Add button or press Alt+Insert and choose the Stylus predefined template from the list.
- In the Program field, specify the path to the executable file:
- stylus for macOS and Unix.
- stylus.bat for Windows.
Type the path manually or click the Browse button and choose the file location in the dialog that opens.
The question is where I can get the stylus.bat. If I install the Stylus globally by npm, it will be installed to [Drive]>Users>[UserName]>AppData>Roaming>npm>node_modules>stylus for the Windows case:
But there is no stylus.bat. Inside bin directory, there is the file stylus without filename extension, but this one does not work.
A <drive>:\Users\<user name>\AppData\Roaming\npm\stylus.cmd
should do the thing