Middleman build ignore swp files

122 Views Asked by At

How do I exclude swp files from the build process in Middleman?

Adding ignore '*.swp' to the config.rb doesn't work for me.

1

There are 1 best solutions below

0
On BEST ANSWER

Looks like I just needed to use regex

ignore /.*\.swp/ worked which looks for anything containing a .swp at the end.