mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
feat(webpack): add USER_PROJECT_PLATFORMS_IOS for embedding options (#10422)
This commit is contained in:

committed by
GitHub

parent
375bc2e10b
commit
3e4582156c
@ -10,7 +10,8 @@ function sanitizeName(appName: string): string {
|
|||||||
}
|
}
|
||||||
function getDistPath() {
|
function getDistPath() {
|
||||||
const appName = sanitizeName(basename(getProjectRootPath()));
|
const appName = sanitizeName(basename(getProjectRootPath()));
|
||||||
return `platforms/ios/${appName}/app`;
|
const platform = process.env.USER_PROJECT_PLATFORMS_IOS ? process.env.USER_PROJECT_PLATFORMS_IOS : "platforms/ios"
|
||||||
|
return `${platform}/${appName}/app`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const iOSPlatform: INativeScriptPlatform = {
|
const iOSPlatform: INativeScriptPlatform = {
|
||||||
|
Reference in New Issue
Block a user