You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/26 22:02:04 UTC
[GitHub] wifisher opened a new issue #684: Would like to be able to filter
files copied from www directory.
wifisher opened a new issue #684: Would like to be able to filter files copied from www directory.
URL: https://github.com/apache/cordova-android/issues/684
# Feature Request
## Motivation Behind Feature
<!-- Why should this feature be implemented? What problem does it solve? -->
Currently, Cordova will copy all files from the project www folder to the assets folder during the prepare process. However, the project www folder may contain files that should not be part of the built application and as such, they should not be copied.
## Feature Description
<!--
Describe your feature request in detail
Please provide any code examples or screenshots of what this feature would look like
Are there any drawbacks? Will this break anything for existing users?
-->
It would be nice if Cordova could use a list of excludes to avoid copying unneeded files. I would suggest using a preference such as wwwExcludes. This preference would contain a list of glob strings that would be used to filter the list of files copied to the assets folder during the prepare process.
## Alternatives or Workarounds
<!--
Describe alternatives or workarounds you are currently using
Are there ways to do this with existing functionality?
-->
The only current alternative is to use an after_prepare hook to remove the unneeded files.
In my case, Cordova is copying VCS files (ie from .git or .hg) which can be quite large.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org