我创建的解决方案由多个WebPart和仅一个扩展组成。
运行调试时可以。
但是当我部署它时,它无法按预期工作。
这是我的 manifests.json
{
"id": "0406b665-e11d-4fe3-a50f-86660d1b13d7",
"alias": "NavSettingApplicationCustomizer",
"componentType": "Extension",
"extensionType": "ApplicationCustomizer",
"version": "0.0.1",
"manifestVersion": 2,
"requiresCustomScript": false,
"loaderConfig": {
"entryModuleId": "nav-setting-application-customizer",
"internalModuleBaseUrls": [
"https://localhost:4321/"
],
"scriptResources": {
"nav-setting-application-customizer": {
"type": "path",
"path": "dist/nav-setting-application-customizer.js"
},
"@microsoft/sp-http": {
"type": "component",
"version": "1.8.2",
"id": "c07208f0-ea3b-4c1a-9965-ac1b825211a6"
},
"@microsoft/decorators": {
"type": "component",
"version": "1.8.2",
"id": "f97266fb-ccb7-430e-9384-4124d05295d3"
},
"@microsoft/sp-application-base": {
"type": "component",
"version": "1.8.2",
"id": "4df9bb86-ab0a-4aab-ab5f-48bf167048fb"
},
"@microsoft/sp-page-context": {
"type": "component",
"version": "1.8.2",
"id": "1c4541f7-5c31-41aa-9fa8-fbc9dc14c0a8"
}
}
}
}