Skip to content

Add WebP support and exclude SVG files from image processing#62

Draft
Claude wants to merge 2 commits intomasterfrom
claude/add-webp-support
Draft

Add WebP support and exclude SVG files from image processing#62
Claude wants to merge 2 commits intomasterfrom
claude/add-webp-support

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented Mar 14, 2026

Adds WebP format support to the Gulp image pipeline while explicitly excluding SVG files from processing.

Changes

  • gulpfile.config.js: Changed image source glob from **/*.* to **/*.{png,jpg,jpeg,gif,webp} to explicitly include WebP and exclude SVG
  • package.json: Added imagemin-webp@^6.0.0 dependency
  • gulpfile.js: Refactored imagemin configuration from object syntax to explicit plugins array, adding imageminWebp with 75% quality setting

Behavior

Previously, the wildcard pattern **/*.* accepted all files including SVGs, which were optimized via imagemin-svgo. Now:

  • WebP images are processed and optimized alongside existing formats (PNG, JPEG, GIF)
  • SVG files in src/img/ are ignored and excluded from the build output
  • All processed images continue to generate both original and _minified versions in dist/img/
Original prompt

This section details on the original issue you should resolve

<issue_title>Add webp support (but don't include svgs)</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @claude[agent] in this section)

Co-authored-by: M-arcus <25648755+M-arcus@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Add webp support but exclude svgs Add WebP support and exclude SVG files from image processing Mar 14, 2026
@Claude Claude AI requested a review from M-arcus March 14, 2026 17:59
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.

Add webp support (but don't include svgs)

2 participants