Exclude files during plugin and theme build process.
.wpcignore
file works like a .gitignore
: it allows you to specify files or directories to exclude during the build process, especially when generating ZIP archives via the CLI.
.wpcignore
file is used to determine which files should be excluded from the final ZIP package. This helps avoid including unnecessary files like version control folders, logs, or local development artifacts.
.wpcignore
file is a plain text file containing one pattern per line. It supports glob patterns, making it easy to match files or folders.
.wpcignore
file at the root of your project. During the build process, the CLI will automatically use it to determine what should be excluded from the archive.
#
are treated as comments.