clubstudio / craft-asset-rev

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

Whats wrong here? None of the configured strategies `manifest` returned a value. #23

Closed jesperlandberg closed 5 years ago

jesperlandberg commented 5 years ago

None of the configured strategiesmanifestreturned a value.

Folder structure:

- config
- web
  - dist
    - manifest.json

My assetrev.php file:

<?php
return array(
    '*' => array(
        'strategies' => [
            'manifest' => \club\assetrev\utilities\strategies\ManifestFileStrategy::class,
            'querystring' => \club\assetrev\utilities\strategies\QueryStringStrategy::class,
            'passthrough' => function ($filename, $config) {
                return $filename;
            },
        ],
        'pipeline' => 'manifest',
        'manifestPath' => 'web/dist/manifest.json',
        'assetsBasePath' => '../web/dist/',
        'assetUrlPrefix' => '@web/dist/',
    ),
);