manifest.json
file may containallows multiple extensions, so you could add resolvers for both Component and Page as separate entries.
For example:
manifest.json file with multiple extentions:
"extensions": [
{
"type": "CMResolver",
"name": "AssetUnpublish",
"supportedVersions": "0.0.0.0",
"properties": {
"itemType": "Tridion.ContentManager.CommunicationManagement.Page",
"type": "CustomAssetResolver.MyResolver",
"assemblyFileSource": "CustomAssetResolver.dll"
},
{
"type": "CMResolver",
"name": "ComponentPublishResolver",
"supportedVersions": "0.0.0.0",
"properties": {
"itemType": "Tridion.ContentManager.ContentManagement.Component",
"type": "CustomAssetResolver.MyComponentPublishingResolver",
"assemblyFileSource": "CustomAssetResolver.dll"
}
}
]