在WebStorm中不起作用,帕格的论点“ --pretty”

时间:2018-08-29 15:56:22

标签: phpstorm pug webstorm

在WebStorm中,Pug的参数“ --pretty”不起作用

enter image description here

HTML文件如下:

enter image description here

但是我想要

enter image description here

请告知该怎么办? 我不想在命令行上写

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

我要进行默认设置。

1 个答案:

答案 0 :(得分:2)

使用以下设置对我来说很好用:

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

enter image description here

enter image description here

您的屏幕快照中的文件似乎不是由文件监视程序生成的-它的位置与文件监视程序设置中的输出目录不匹配

相关问题