A cordova plugin that allows to exclude files from the build.
This plugin does not work in PhoneGap Build since they don't support cordova hooks.
cordova plugin add cordova-plugin-exclude-files
Configure which files to exclude from the build, by adding any number of
<exclude-files> elements to your
Patterns are globs that are resolved relative to the
Platform specific excludes are appended to the global excludes.
How it works
Files that match the given patterns will be removed by an
This seems to be the only safe method of doing this at the moment of writing.
This means that cordova will first copy everything from
www to the platform directories and then the files matched by this plugin will be deleted from there.
Consequently, you cannot speed up
cordova prepare by excluding files using this plugin.
Requires Cordova ≥ 8, Node.js ≥ 6.
- For Cordova < 8 use
- For Node.js 4 use
cordova-plugin-exclude-files is licensed under the MIT License.
Copyright (c) 2017–2018 Raphael von der Grün