Search code examples
vimbuildmiddlemanmiddleman-4swp

Middleman build ignore swp files


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

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


Solution

  • Looks like I just needed to use regex

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