Closed daftspunk closed 2 years ago
I would love to use this feature too.
Solved in v1.1.1 and should be available soon. Note it requires the latest v2 core (v2.1.20)
.deployignore
to Ignore FilesThere are times when you don't want specific files to be deployed, such as the node_modules
directory used in plugins and themes. This is possible by creating a .deployignore
file in the base directory of your plugin or theme. This file behaves the same as .gitignore
file where you can configure Git to ignore files you don't want to check in.
The following .deployignore
file will exclude the node_modules directory:
node_modules/
The file must be located at the base directory of the theme or plugin. For example:
Thank you!
Sending dev resources such as
.git
andnode_modules
is not necessary during deployment so they should be filtered out. This will help with the archive file size.