Skip to content

feat: Add ConverterOptions #18

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Sarfraz-droid
Copy link

@Sarfraz-droid Sarfraz-droid commented Aug 26, 2024

Description of change

Hey @Jackardios , was trying to work with this lib but wanted a feature where I just needed the tailwind classes and parsed css separately. Would love to have an option like ConverterOptions to include such flags within the package.

Usage

const inputCSS = `
.foo {
  padding-left : 25px
}
`

const converter = new TailwindConverter();

converter
  .convertCSS(inputCSS, {
    skipAddingTailwindClasses: true,
  })

Pull-Request Checklist

  • Code is up-to-date with the main branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000 - NA
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions outlined in the conventional commit spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant