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 classes output switch to Tailwind CLI #14373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bopm
Copy link

@bopm bopm commented Sep 9, 2024

Introduce a new switch --classes-output to the Tailwind CLI build command to output only detected classes.

  • src/cli/index.js
    • Add a new switch --classes-output to the build command.
  • src/lib/expandTailwindAtRules.js
    • Update the expandTailwindAtRules function to handle the --classes-output switch.
    • Add logic to output only the detected classes when the switch is enabled.
  • tests/variants.test.js
    • Add tests to verify the functionality of the --classes-output switch.
    • Include test cases for different scenarios with the new switch.
Introduce a new switch `--classes-output` to the Tailwind CLI build command to output only detected classes.

* **src/cli/index.js**
  - Add a new switch `--classes-output` to the build command.
* **src/lib/expandTailwindAtRules.js**
  - Update the `expandTailwindAtRules` function to handle the `--classes-output` switch.
  - Add logic to output only the detected classes when the switch is enabled.
* **tests/variants.test.js**
  - Add tests to verify the functionality of the `--classes-output` switch.
  - Include test cases for different scenarios with the new switch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant