Option to remove unnecessary files from target

I needed a way to remove node_modules because it was causing an error on GitHub Pages. Is there another way to do this already with a ``src`` pattern maybe? If not, this patch adds the feature.