Is there a way to exclude folders while exporting?

Hey there!

I’ve been using Local for a week now, and besides working great (which is already cool :slight_smile:), I’m wondering if there’s a way to exclude a folder in the Export screen.
In my case, I created a new folder at the same level as the Public one, but with static html files for reference, and I want to exclude them every time I do an export.

Thanks in advance! :+1:

1 Like

I found this while looking for a way to always exclude the npm created node_modules folder when using the Export option.

Modern JavaScript development for WordPress plugins is likely to involve building massive node_modules folders within the plugin Git repo.

Being unable to exclude node_modules folders results in very large & slow to create exported zip files.

The current Local by Flywheel UI for Export includes some explanation on how to exclude files but I can’t understand how this might apply to folders.


Any assistance on this would be greatly appreciated.

Hi @buzztone,

You can exclude node_modules by adding the following pattern: */node_modules/*.

Same goes for .git: */.git/* :smiley:

1 Like

This didn’t work for me. I added */node_modules/* to my file exclusion filter setting and the node_modules directory in my theme was still included in the .zip. Does this work for others?


Nops… Not working here too.

Can you help us with this?

Yes, excluding folders has not worked for me. Trying to exclude wp-content/uploads from export, can’t get it to work, tried all combinations.