- From: Drew Powers via GitHub <noreply@w3.org>
- Date: Sat, 16 Aug 2025 21:26:16 +0000
- To: public-design-tokens-log@w3.org
drwpow has just merged drwpow's pull request 294 for https://github.com/design-tokens/community-group: == chore(www): Fix dev server refresh when editing respec == ## Changes Followup from #293, where auto refresh can now be fixed in eleventy. Editing the draft spec now reflects changes in the local server without a restart. There were a few problems fixed: 1. Eleventy’s passthrough behavior, for some reason, disables auto-refreshing (other static site builders allow for asset refreshing just fine). 2. Eleventy also has special handling for HTML, so we have to basically treat `.html` as an “input” so Eleventy auto-reloads and auto-builds when it changes. But we have to disable processing and other automatic things that would cause issues for us. 3. There was also some magic behavior we had to opt out of, such as Eleventy respecting `.gitignore` files There was an optional improvement made where now **only the spec you’re editing rebuilds in `dev` mode.** As opposed to any change rebuilding all specs. ## How to Review - ✅ Locally, editing a spec now reflects changes in local server (takes a few seconds for ReSpec to build, but that’s expected) - ✅ The Netlify preview was expected, and the changes to the Eleventy config didn’t cause any regressions on the site See https://github.com/design-tokens/community-group/pull/294 -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 16 August 2025 21:26:16 UTC