Closed S1SYPHOS closed 3 years ago
Yep, inside the the plugin, hash()
function$query
option('bnomei.fingerprint.query')
equals /path/to/vendor/getkirby/assets/manifest.json
, but I passed my own assets folder ..
// Edit:
Passing the absolute path works, so it seems that kirby()->root('assets')
gets corrupted in some way, maybe some kind of default / fallback? Gotta investigate ...
This seems to be a general issue, so I asked the forum:
https://forum.getkirby.com/t/problem-with-kirby-being-passed-to-config-option/22754
Hey there, I'd like to point query to my manifest file and then use
Fingerprint::js
on my my JS file. Unfortunately, that doesn't seem to work. The generatedsrc
attribute contains the path, but without the filename of my JS likeassets/js/
instead ofassets/js/main-somehash.js
.In my
config.php
, I'm doing this:Inside
Fingerprint.php
, line 76, whendump
ing$this->option('query')
, I'm getting the path to my kirby folder/assets/manifest.json
instead of what I passed (see above).??
// Edit: My
manifest.json
looks like this: