【问题标题】:WebStorm File Watcher HTML minifyWebStorm 文件观察器 HTML 缩小
【发布时间】:2021-03-08 20:42:19
【问题描述】:

我正在尝试使用 File Watcher 缩小我的 HTML 文档,但它什么也没做。

我尝试用谷歌搜索我的问题并从 SO 中找到了这个 Link,我尝试了俄语解决方案,但对我也不起作用。

另外,工作目录是$FileDir$

【问题讨论】:

    标签: webstorm html-minifier


    【解决方案1】:

    什么不适合你? this SO link 的设置适用于我最新的 html-minifier 版本:

    参数: $FileName$ --collapse-boolean-attributes --collapse-whitespace --html5 --remove-attribute-quotes --remove-comments --remove-empty-attributes --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-style-link-type-attributes --remove-tag-whitespace --sort-attributes --sort-class-name --trim-custom-fragments --use-short-doctype --minify-js -o $FileNameWithoutExtension$.min.html

    要刷新的输出路径: $FileNameWithoutExtension$.min.html

    工作目录: $FileDir$

    【讨论】:

      猜你喜欢
      • 2017-02-25
      • 1970-01-01
      • 1970-01-01
      • 2018-07-05
      • 1970-01-01
      • 2015-11-16
      • 1970-01-01
      • 2015-03-30
      • 1970-01-01
      相关资源
      最近更新 更多