mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix(prepare): mapImageResources always returning [] (#1136)
This commit is contained in:
parent
97e2d15634
commit
55feadff05
3
bin/templates/cordova/lib/prepare.js
vendored
3
bin/templates/cordova/lib/prepare.js
vendored
@ -665,7 +665,8 @@ function cleanIcons (projectRoot, projectConfig, platformResourcesDir) {
|
||||
*/
|
||||
function mapImageResources (rootDir, subDir, type, resourceName) {
|
||||
const pathMap = {};
|
||||
glob.sync(type + '-*', { cwd: path.join(rootDir, subDir) }).forEach(drawableFolder => {
|
||||
const globOptions = { cwd: path.join(rootDir, subDir), onlyDirectories: true };
|
||||
glob.sync(type + '-*', globOptions).forEach(drawableFolder => {
|
||||
const imagePath = path.join(subDir, drawableFolder, resourceName);
|
||||
pathMap[imagePath] = null;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user