XF 2.0 Exclude files in build.json

Siropu

Well-known member
I want to exclude some files in one of my add-on directories when the zip is built. How can I do that?
 
You can use a build.json file and its "exec" array to execute commands. You could get that to run a script or run some delete commands, e.g.
JSON:
{
    "exec": [
        "rm -rf _build/file/to/remove"
    ]
}
This will remove it from the contents of the _build directory which is the temporary directory which is zipped up for the release.
 
Yes, that's correct - the _build directory has the same directory structure as the zip file.
 
Top Bottom