Just wanted to share a tip on how to exclude folders from LocalWP exports, since I’ve noticed a few people have been trying to do that (namely to exclude node_modules) in the following topic, but without success :
From what I’ve noticed, the “File exclusion filter” when exporting seems to be using glob patterns, so if you want to exclude whole directories recursively you will need to add a filter using globstars
For example, to exclude all files in any node_modules folder within your site, you need to add this filter:
**/node_modules/**. As mentioned, notice the use of globstars
** as opposed to
*/node_modules/* as someone suggested in the above-mentioned topic.
Hope this will help some of you people avoiding huge exports containing node_modules and other unnecessary stuff