Skip to content

Releases: oyjt/vite-plugin-replace-image-url

v2.0.0

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.

v1.4.1

Choose a tag to compare

@oyjt oyjt released this 05 Apr 05:15

feat: optimize configuration options handling

v1.4.0

Choose a tag to compare

@oyjt oyjt released this 05 Apr 04:48

feat: improve plugin robustness and code quality

  • Refactor options handling with proper defaults
  • Add error handling for file processing
  • Fix potential double slash issue in URL paths
  • Return null instead of undefined for better Vite plugin compatibility
  • Improve code structure and readability

v1.3.0

Choose a tag to compare

@oyjt oyjt released this 10 Dec 07:12

support vite6.0

v1.2.1

Choose a tag to compare

@oyjt oyjt released this 21 Jun 17:52

support vite5.0

v1.1.1

Choose a tag to compare

@oyjt oyjt released this 19 Oct 16:53

update config

v1.1.0

Choose a tag to compare

@oyjt oyjt released this 18 Oct 17:38

fix type error

v1.0.0

Choose a tag to compare

@oyjt oyjt released this 17 Oct 19:26

initial version