clubstudio / craft3-asset-rev

A Craft 3 plugin to help with cache busting
MIT License
7 stars 3 forks source link

Multi-site compatibility #4

Open timkelty opened 7 years ago

timkelty commented 7 years ago

I have a Craft 3 multi-site with separate rev manifests per-site.

Would be great if in my config I could do


return [
    'siteA' => [
        'manifestPath' => 'sites/siteA/public/assets/manifest.json',
        'assetsBasePath' => 'sites/siteA/public/assets',
        'assetUrlPrefix' => getenv('ASSET_URL_PREFIX'),
    ],
    'siteB' => [
        'manifestPath' => 'sites/siteB/public/assets/manifest.json',
        'assetsBasePath' => 'sites/siteB/public/assets',
        'assetUrlPrefix' => getenv('ASSET_URL_PREFIX'),
    ],
];```