【问题标题】:Ignore folder when build using Middleman App使用 Middleman App 构建时忽略文件夹
【发布时间】:2014-02-18 09:30:43
【问题描述】:

我想在构建时忽略 samples/ 文件夹。我用过这个

configure :build do
  activate :asset_hash, :ignore => [/^samples\//]
end

它不起作用,并且在构建过程中仍然包含该文件夹。有人可以建议吗?

【问题讨论】:

    标签: ruby middleman


    【解决方案1】:

    将以下代码添加到您的 config.rb 文件中:

    ignore 'samples/*'
    

    #ignore 也接受正则表达式。见the specs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-25
      • 1970-01-01
      • 2019-11-02
      • 1970-01-01
      相关资源
      最近更新 更多