Skip to content

v2.0.0

Latest

Choose a tag to compare

@oyjt oyjt released this 23 Sep 01:46
43a6582

Highlights

  • Replace selected image imports with external CDN URLs without emitting those images.
  • Support relative image references in HTML src/poster attributes and CSS url().
  • Support relative output paths, AVIF, and explicit ?url imports.
  • Preserve Vite behavior for ?raw and ?inline.
  • Add Vite logger integration with verbose and silent.
  • Upgrade to an ESM-only package with Node.js 18+ and Vite 3+ support.
  • Add Linux and Windows integration tests.
  • Publish to npm through trusted publishing with OIDC.

Breaking changes

  • The package is now ESM only and requires Node.js 18 or later.
  • Relative sourceDir values are resolved from Vite's project root.
  • Only images inside sourceDir are replaced.