How do, using File Watchers in PHPStorm do I set up LESS file watchers output path to do this:
I want:
/project/path/less/dir/file.less
to output to:
See my related answer for JADE file watcher, I believe it would be the same for LESS.
The trick is to use $FileDirPathFromParent(dir)$ macro:
$FileDirPathFromParent(dir)$
$ProjectFileDir$/css/$FileDirPathFromParent(less)$ will produce /project/path/css/dir/ for a file located in /project/path/less/dir/ directory.
$ProjectFileDir$/css/$FileDirPathFromParent(less)$
/project/path/css/dir/
/project/path/less/dir/