Copy asset resources generated by cordiva-res into Android and iOS platform folders in a Capacitor project.
npm install -g @d4h/capacitor-res
This script derives from this gist from dalezak, which in turn comes from given in ionic-team/capacitor#229. The original script as given didn't work too well in the context of a monorepo project, as it expected platform and asset folders to lie at the project root.
cd path/to/project/
cordova-res <platform>
capacitor-res <platform>
- https://github.com/ionic-team/cordova-res
- ionic-team/capacitor#229 (comment)
- https://gist.github.com/rrlevy/16d42f94decd3b82bed4ac00da79f2f2
Copyright (C) 2019 Dale Zak.