Sam Richard
@Snugug
BBQ lead, ChromeOS DevRel. Mostly food, sometimes design and development, especially for the web. 7008px tall. He/him.
An archive of my Twitter timeline up until I moved to Mastodon. You can find me there at @[email protected]
Next is internationalization redirection for service workers!
npmjs.com/package/service-worker-i18n-redirect
This will allow a Service Worker to redirect a URL to the user’s preferred language given a url pattern {{langcode}}/url/path
. Should be dep free, but designed for @workboxjs.
[@workboxjs](https://twitter.com/workboxjs/) Third, Service Worker Includes!
npmjs.com/package/service-worker-includes
This is a caching pattern where full HTML is served to a user, but dynamic and static parts of the page can be cached and updated separately! Uses @workboxjs too.
Finally, an @eleven_ty plugin! Local Responsive Images!
npmjs.com/package/eleventy-plugin-local-respimg
This transforms
img
tags with images on-disk by resizing, WebP-ing, and optimizing them, and sticks them in apicture
tag! Drop-dead simple local responsive images.That’s what I’ve got for y’all! Static Site Scaffold has also been updated to use these, too!
These all now live in github.com/chromeos/static-site-scaffold-modules, my first monorepo. More thoughts (and modules!) coming from my learnings setting that up soon.
Ok, I’ve got one more for y’all now that I’ve got the kinks worked out: Emoji Commit Helpers:
npmjs.com/package/emoji-commit-helpers
:emoji: (scope) Subject
commit style helpers for Commitizen and Commitlint, but with shared settings and Lerna support! Semantic Release & Changelog soon.