【问题标题】:DOCPAD How can I exclude files from being pushed into the out-folderDOCPAD 如何排除文件被推入出文件夹
【发布时间】:2013-10-24 12:07:37
【问题描述】:

示例:我在src/files/config.rb 下有一个config.rb-文件

如何排除这个被 docpad 推送到 out/config.rb 的文件

例如 jekyll 中的配置文件是否有排除命令? exclude: makelive.sh, ideas.txt, newpost.rb

【问题讨论】:

    标签: docpad


    【解决方案1】:

    您可以使用各种ignore* configuration options 来完成您需要的工作。

    表面上,ignorePaths 似乎是最简单的解决方案,如果你只有一两个不想包含的文件,但实际上它似乎是基于绝对路径操作的,这很不方便.所以我可能会使用ignoreCustomPatterns 选项来指定与您不想复制的文件匹配的正则表达式。

    # Ignore Custom Patterns
    # Can be set to a regex of custom patterns to ignore from the scanning process
    ignoreCustomPatterns: /config.rb/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-22
      • 2014-02-09
      • 2021-12-30
      • 1970-01-01
      • 2013-06-15
      • 1970-01-01
      • 2011-03-21
      相关资源
      最近更新 更多