HP.
HP.

Reputation: 19896

Ignore folder when build using Middleman App

I want to ignore samples/ folder when build. I used this

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

It didn't work and that folder was still included during build process. Could anyone advise?

Upvotes: 4

Views: 1591

Answers (1)

carpamon
carpamon

Reputation: 6623

Add the following code to your config.rb file:

ignore 'samples/*'

#ignore accepts regular expressions as well. See the specs.

Upvotes: 7

Related Questions