Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.5 KB

File metadata and controls

40 lines (31 loc) · 1.5 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.0 - 2025-08-20

Added

  • Initial release of postcss-inline-extract
  • Extract inline styles from HTML style attributes
  • Support for multiple selector generation strategies:
    • class: Use existing class attributes (.className)
    • id: Use existing id attributes (#idName)
    • hash: Generate random hash selectors (.abc123)
  • Optional extraction from <style> tags via styleTags option
  • Automatic property merging for duplicate selectors
  • Configurable CSS indentation via indent option
  • TypeScript support with full type definitions
  • Support for compound selectors from multiple classes
  • Comprehensive test suite with 43 test cases using Vitest
  • PostCSS Plugin Guidelines compliance
  • Proper error handling with PostCSS error reporting

Technical Details

  • Built with TypeScript targeting ES2018
  • Uses node-html-parser for HTML parsing
  • PostCSS as peer dependency
  • Rollup + esbuild for bundling
  • ESLint with strict TypeScript configuration
  • Vitest for testing with coverage reporting
  • GitHub Actions CI workflow for automated testing