Skip to content

ci: compress images under nuxt/ again - #5869

Closed
dimitrieh wants to merge 1 commit into
nuxt/eleventy-teardownfrom
ci/compress-nuxt-images
Closed

dimitrieh wants to merge 1 commit into
nuxt/eleventy-teardownfrom
ci/compress-nuxt-images

Conversation

@dimitrieh

Copy link
Copy Markdown
Contributor

Description

The Compress images workflow ignores nuxt/**, meant for images that Nuxt Image optimises at request time. Production runs build:nuxt:skip-images, which turns Nuxt Image off, so live pages serve images as committed. After #5795 every tracked image is under nuxt/public/, so the workflow would compress nothing.

This narrows the ignore to node_modules/**, the action's default.

Based on 5795 so it cannot merge first: merged earlier, the workflow would recompress the images 5795 moves.

Related Issue(s)

Follow-up to #5777

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@dimitrieh

Copy link
Copy Markdown
Contributor Author

FYI: the failing build here isn't caused by this PR. Tracked in https://github.com/FlowFuse/engineering/issues/460. It's resolved now, re-running the checks.

@dimitrieh
dimitrieh force-pushed the nuxt/eleventy-teardown branch from 6470fc4 to 1621c8d Compare September 25, 2026 20:07
@dimitrieh
dimitrieh requested review from a team as code owners September 25, 2026 20:07
The Compress images workflow ignored nuxt/** since images there were meant to be
optimised by Nuxt Image at request time. Production builds run
build:nuxt:skip-images, which turns Nuxt Image off, so they serve the files as
committed, and after the 11ty teardown every tracked image is under nuxt/public/.
With the old ignore the workflow still runs on every image PR but compresses
nothing, so a new screenshot ships at full size.

It now ignores only node_modules/**, the action's own default.
@dimitrieh
dimitrieh force-pushed the ci/compress-nuxt-images branch from 9d2fcf6 to 4fee99c Compare September 25, 2026 20:07
@ZJvandeWeg

Copy link
Copy Markdown
Member

@dimitrieh While valuable as a change, it slows down the build a lot. I would much rather do this at deploy time through Netlify and make that change next week. We also should review how many <img> need replacing with with <NuxtImage> in that PR, and just plain remove SKIP_IMAGES and the calibre way of doing things.

@ZJvandeWeg ZJvandeWeg closed this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants