clubstudio / craft-asset-rev

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

[Feature request] Support for multi-sites in config. #29

Closed tomkiss closed 3 years ago

tomkiss commented 3 years ago

Hey there.

Great plugin, thank you 🙌

Not sure if I'm being a doofus or not (please let me know if I am!), but it looks to me as if multi-site config format isn't supported in the config/assetrev.php?

If it isn't, it would be super helpful to be able to support this plz.

e.g:

<?php
return [
    '*' => [
        ...
    ],

    'site1' => [
        'manifestPath' => 'web-en/assets/manifest.json',
    ],

    'site2' => [
        'manifestPath' => 'web-de/assets/manifest.json',
    ]
];
tomkiss commented 3 years ago

OK, doofus mode disengaged. It's Friday, I'm tired, the children have ruined me 😣.

<?php
return [
    '*' => [
        ...
        'manifestPath' => '@webroot/assets/manifest.json',
    ],

];

🤦

kthxbai