Closed jamesmacwhite closed 5 years ago
Ah , so this looks like a legacy thing from Gulp Rev.
Previously paths for being revved were 'dist/folder/file.jpg'. However under this plugin, including the dist part in the rev twig function is wrong, it should instead be added to the assetUrlPrefix
.
Changing the paths for the files themselves fixes this error, so it's not an issue accessing the rev-manifest.json
.
To future searchers: This error most likely occurred because you forgot to compile your assets so the manifest file this plugin reads is empty, thereof the error.
I'm coming from a Craft 2 project which originally used the Gulp Rev plugin. I'm using this plugin as a replacement as it does everything that Gulp Rev did and more! I'm having issues with the manifest pipeline method however.
This suggest the rev-manifest.json is not being found. This is the directory structure I have:
Contents in the assets folder are created as rev assets in the
web/dist
folder. Arev-manifest.json
is output to theweb/dist
folder, however no matter I configure in theassetrev.php
I get the above error on the manifest strategy locally (for testing). Passthrough works fine for dev.Any ideas?