bvdputte / kirby-fingerprint Goto Github PK
View Code? Open in Web Editor NEWCache-busting utility to fingerprint assets (JS/CSS) in Kirby CMS
License: MIT License
Cache-busting utility to fingerprint assets (JS/CSS) in Kirby CMS
License: MIT License
Apparently Laravel Valet has no config options, so it needs an option to disable the plugin...
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?
While setting up Kirby on an Nginx server, we discovered that this doesn't work:
location ~ (.+)\.(?:\d+)\.(js|css)$ {
try_files $uri $1.$2;
}
That regex does not catch the alphanumeric fingerprint strings. Following the Apache example, Nginx setup works when using (.+)\.(?:[0-9,a-z]+)\.(js|css)$
or (.+)\.(?:\w+)\.(js|css)$
.
You need to release and tag ๐
css("@auto");
doesn't seem to work...
Hi, as I mentioned in the PR, the way it works now adds an empty or <script> when using @auto and you don't have a template specific asset. The only way to circumvent this as long as the kirby issue is not resolved, is to use custom helper functions instead of the kirby core functions.
Cheerio
Hello there,
while I skimmed through your code my IDE showed me an undefined variable error in Fingerprint::Hash
: https://github.com/bvdputte/kirby-fingerprint/blob/master/src/Fingerprint.php#L35
Best
Benedict
Kirby 3.8 uses the "version"
field in composer.json
to check whether installed plugins are up-to-date, so it would be great if kirby-fingerprint
could increment it alongside the git tags.
https://getkirby.com/releases/3.8/migration-plugins#add-compatibility-with-the-update-check
Thanks for the plugin!
Using 2.1 the parameter option is not working (its using hashes), default hash name works, I need also this to work with laravel valet (you mentioned in readme)
But I guess I'm disabling the plugin for local development
EDIT:
I peeked into the code, I guess you didnt update the composer version
The Code from Github works
As it says in the title :)
No longer works with URL's fed to the css & js helper, only if its set to @auto.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.