Skip to content

Commit 73dd938

Browse files
committed
fix: move App_Resources to the right directories on every webpack build
1 parent 88f0b4f commit 73dd938

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/prepare-platform-native-service.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ export class PreparePlatformNativeService extends PreparePlatformService impleme
2626
await this.cleanProject(config.platform, config.appFilesUpdaterOptions, config.platformData, config.projectData);
2727
}
2828

29-
if (!config.changesInfo || config.changesInfo.changesRequirePrepare) {
29+
// Move the native application resources from platforms/.../app/App_Resources
30+
// to the right places in the native project,
31+
// because webpack copies them on every build (not every change).
32+
if (!config.changesInfo || config.changesInfo.changesRequirePrepare || config.appFilesUpdaterOptions.bundle) {
3033
this.prepareAppResources(config.platformData, config.projectData);
34+
}
35+
36+
if (!config.changesInfo || config.changesInfo.changesRequirePrepare) {
3137
await config.platformData.platformProjectService.prepareProject(config.projectData, config.platformSpecificData);
3238
}
3339

0 commit comments

Comments
 (0)