Releases: oyjt/vite-plugin-replace-image-url
Releases · oyjt/vite-plugin-replace-image-url
Release list
v2.0.0
Highlights
- Replace selected image imports with external CDN URLs without emitting those images.
- Support relative image references in HTML
src/posterattributes and CSSurl(). - Support relative output paths, AVIF, and explicit
?urlimports. - Preserve Vite behavior for
?rawand?inline. - Add Vite logger integration with
verboseandsilent. - 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
sourceDirvalues are resolved from Vite's project root. - Only images inside
sourceDirare replaced.
v1.4.1
v1.4.0
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