bvdputte / kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby CMS
MIT License
15 stars 3 forks source link

Not working with 3.1.0 #2

Closed HashandSalt closed 5 years ago

HashandSalt commented 5 years ago

Try as I might, I cant seem to get this work. Ive add the plugin via composer, add the .htaccess rules and im using the CSS & JS helpers as normal.

<?= css("assets/css/site.css") ?>
<?= js("assets/js/site.js") ?>

I just uploaded the site to my staging server and i just get the plain, unbusted url to the file. Any ideas?

bvdputte commented 5 years ago

I have just tested this in a new starterkit, and in my setup it just works (without composer though)?

<?= css(['assets/css/index.css', '@auto']) ?>
// outputs:
// <link href="http://localhost/assets/css/index.ea0b15243b1ebacb018d4e94fb7989e9.css" rel="stylesheet">
// <link href="http://localhost/assets/css/templates/home.css" rel="stylesheet">

But it doesn't work as intended for @auto somehow 🤔.

bvdputte commented 5 years ago

Apparently it was a composer problem that should've been fixed now. If it isn't, please let me know and I'll reopen the issue.