I have a copy task that copies over additional supporting files which include a manifest.json that is necessary for add to homescreen on Android. Currently copying this JSON file fails with gulp-rev-collector because it tries to take path.basename of an object. This PR adds a check to make sure the value is a string, fixing that error.
For reference, this is the JSON file that breaks the package (since it tries to take path.basename of the icons array):
I have a
copy
task that copies over additional supporting files which include amanifest.json
that is necessary for add to homescreen on Android. Currently copying this JSON file fails withgulp-rev-collector
because it tries to takepath.basename
of an object. This PR adds a check to make sure the value is a string, fixing that error.For reference, this is the JSON file that breaks the package (since it tries to take
path.basename
of theicons
array):