I think it works. I subsequently checked the workshop.html and index.html and styling seemed ok?
Note: if you run npm run cache-busting locally, there will be a bunch of unignored css files in css/highlight.js as my .gitignore pattern matching wasn't good enough to catch it.
I generalized the hashing function to work for any directory and file extension, and updated the variable names and comments for clarity
I think it works. I subsequently checked the workshop.html and index.html and styling seemed ok?
Note: if you run
npm run cache-busting
locally, there will be a bunch of unignored css files incss/highlight.js
as my .gitignore pattern matching wasn't good enough to catch it.I generalized the hashing function to work for any directory and file extension, and updated the variable names and comments for clarity