Skip to content

Releases: ropean/inline-assets

Release v1.0.2

Choose a tag to compare

@github-actions github-actions released this 31 Oct 18:49

Release 1.0.2

📦 NPM Package

npm install @ropean/inline-assets@1.0.2

📝 What's Changed

No changelog entry found for version 1.0.2


Full Changelog: CHANGELOG.md

v1.0.1

Choose a tag to compare

@ropean ropean released this 27 Oct 22:36

Changed

  • Broadened Vite peer dependency to "vite": ">=2.0.0" for better forward compatibility across future Vite releases, while remaining compatible with Vite 2+.

Docs

  • Clarified publishing and website deployment instructions.

First version

Choose a tag to compare

@ropean ropean released this 27 Oct 22:34

Added

  • Initial release
  • Zero-dependency implementation with built-in ANSI color logger
  • Dual export mode: Vite plugin + standalone function
  • Inline CSS files into <style> tags
  • Inline JavaScript files into <script> tags
  • Inline SVG files as base64 data URIs (img and link tags)
  • Configurable exclusion patterns for selective inlining
  • Custom logger interface support
  • Automatic cleanup of inlined files and empty directories
  • Full TypeScript type definitions
  • Comprehensive documentation and examples

Features

  • Works with any build tool (Webpack, Rollup, esbuild, etc.)
  • Automatic Vite configuration for optimal CSS extraction
  • Silent mode for testing and CI/CD environments
  • File pattern matching (full path and filename)
  • Detailed logging with color-coded output