2013-10-24 28 views
2

例排除文件:我有下src/files/config.rbDOCPAD我怎麼能被推到離文件夾

一個config.rb -file我怎樣才能排除此文件由docpad推入out/config.rb

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

回答

4

您可以使用各種ignore* configuration options來完成你所需要的。

從表面上看,ignorePaths看起來像是最簡單的解決方案,如果只有一個或兩個文件不需要包含,但實際上它似乎是基於絕對路徑操作,這很不方便。所以,我可能會使用的ignoreCustomPatterns選項來指定匹配你不想複製的文件regexs。

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

嘿ERV!感謝您的幫助。您的解決方案奏效 – Phlow

相關問題