You may wish to have Hammer completely ignore a folder, some files or sore types of files. This is pretty common and it is highly recommended to ensure Hammer build performance, that you consider which files in your project should pass through the compilation process.
It works in a very similar way to the .gitignore
that you may have come across.
For example, you wouldn't want any artwork files like .psd
or .sketch
, whole directories of dependency libraries, such as those in a node_modules
directory.
Using the Hammer Ignore is very easy, there's even a helpful UI in the Hammer app.
Understanding the exact strings to type can be a bit confusing, so here's a few tips. Assuming we have a folder called MyFolder
in our project, let's ignore it…
MyFolder
If we wanted to ensure that we ignored all the files in this folder, we can use a wildcard
MyFolder/*
Let's say that we wish to ignore all of our raw artwork files in our entire project
*.psd
*.sketch