Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to handle wrapped classes to extend the set of use cases #109

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Oct 10, 2024

  1. fix(regex): improve class attribute regex to support CSS variables

    The regex for matching class attributes in HTML has been updated to include support for CSS variables and to optimize for scenarios where the "Name" part of "className" is optional. This enhancement ensures better performance and compatibility with modern CSS practices.
    dikkadev committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    314e6b8 View commit details
    Browse the repository at this point in the history
  2. feat(cli): add class wrapping configuration option

    This update introduces a new feature that allows users to specify how individual classes are wrapped in the CLI. This enhancement includes changes in the CLI options to accept a new parameter for class wrapping, adjusts the core sorting logic to accommodate this new setting, and ensures compatibility with existing functionality. The addition of `HowClassesAreWrapped` enum and related functions facilitates handling different class wrapping styles, providing users with more flexibility in how they organize and process their CSS classes.
    dikkadev committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ae6084a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe51f22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f56ca30 View commit details
    Browse the repository at this point in the history