Ignore folder when created using Middleman application

I want to ignore the folder samples/during assembly. I used this

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

This did not work and this folder was still included during the build process. Can anyone advise?

+4
source share
1 answer

Add the following code to the config.rb file:

ignore 'samples/*'

#ignorealso accepts regular expressions. See specifications .

+7
source

Source: https://habr.com/ru/post/1527467/


All Articles