Hugo support in Cloudflare Workers

This is a repository for a Cloudflare Worker test site:
https://github.com/jmooring/hosting-cloudflare-worker

The important files in the repository are:

  • build.sh
  • wrangler.toml

This is the live site:
https://hosting-cloudflare-worker.joe-mooring.workers.dev/

This site:

  1. Includes content from a Hugo module
  2. Transpiles Sass to CSS using Dart Sass
  3. Performs vendor prefixing of CSS rules using the postcss, postcss-cli, and autoprefixer Node.js packages
  4. Processes CSS files using the tailwindcss and @tailwindcss-cli Node.js packages
  5. Encodes images to the WebP format to verify that we’re using Hugo’s extended edition
  6. Includes a content file named hugö.md to verify that the Git core.quotepath setting is false [1]

  1. See issue #9810. Git’s core.quotepath setting is false if /tests/hugö has a non-zero “last modified” date. ↩︎

3 Likes