Ignore folder when build

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

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

It didn’t work. Could anyone advise?

Did you have the # at the start of the line when trying?

Right I didn’t have # when I ran it. Sorry it was a mistake copying that code after the fact.

So how to ignore folder then?

Looks like you got your answer on StackOverflow:

ignore 'samples/*'