Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore folder when build using Middleman App

Tags:

ruby

middleman

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?

like image 295
HP. Avatar asked Mar 21 '23 13:03

HP.


1 Answers

Add the following code to your config.rb file:

ignore 'samples/*'

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

like image 69
Nicolas Garnil Avatar answered Mar 29 '23 05:03

Nicolas Garnil