Search code examples
phpstormpugwebstorm

In WebStorm don't work Pug's argument "--pretty"


In WebStorm don't work Pug's argument "--pretty"

enter image description here

HTML file looks like:

enter image description here

But I want:

enter image description here

Please advise what to do? I do not want to write on the command line

pug --watch --pretty ./pug/ --out ./html/

I want to make the default setting.


Solution

  • Works fine for me when using the following setup:

    Arguments: $FileName$ --pretty --out $ProjectFileDir$/html
    Output paths to refresh: $ProjectFileDir$/html/$FileNameWithoutExtension$.html
    

    enter image description here

    enter image description here

    the file in your screenshot doesn't seem to be produced by a file watcher - it's location doesn't match the output directory in your file watcher settings