PHPStorm: How do I setup LESS to output to CSS directory with file watcher?

后端 未结 6 518
误落风尘
误落风尘 2020-12-09 09:30

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:

6条回答
  •  难免孤独
    2020-12-09 09:49

    Just change Output Path to Refresh to:

    ../css/$FileNameWithoutExtension$.css

    Update:

    In the new version of LESS you should reverse your slashes in Path you specify. So it should be:

    ..\css\$FileNameWithoutExtension$.css

提交回复
热议问题