Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Please make it possible to get files copied to the www folder during build #1519

Closed
ch-weiss opened this issue Oct 11, 2016 · 2 comments

Comments

@ch-weiss
Copy link

The plugin cordoba-plugin-inapppurchase requires a manifest.json file with the Android Billing Key directly in the www folder:
https://github.com/AlexDisler/cordova-plugin-inapppurchase

Now with the changes in the build process of Ionic rc0 the manifest file gets deleted with every build.

Please make it possible to get files copied to the www folder apart from the asset folder and the index file. Thank you.

@jgw96
Copy link
Contributor

jgw96 commented Oct 11, 2016

Hello, thanks for opening an issue with us! We are discussing making www not get erased everytime a build is done here ionic-team/ionic-app-scripts#134 which should fix this issue as you could just put the file in www and not have to worry about it anymore after this. Something you can do in the mean-time is setup a custom copy.config to make sure your file gets copied from src to www every time. You can use the ionic_copy npm config to point to a custom copy.config file ( here is a good example of setting up a custom npm property ). In your custom copy.config you can just copy paste ours and then put in a new entry for your file. src is the path to the file in the src directory of your app and dest is where it should be copied too. Thanks!

@jgw96 jgw96 closed this as completed Oct 11, 2016
@ch-weiss
Copy link
Author

@jgw96 Thanks for your great support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants