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

Variant Group Transformer not working with CLI #3398

Closed
4 tasks done
steakscience opened this issue Nov 30, 2023 · 2 comments
Closed
4 tasks done

Variant Group Transformer not working with CLI #3398

steakscience opened this issue Nov 30, 2023 · 2 comments
Labels

Comments

@steakscience
Copy link
Contributor

UnoCSS version

0.57.7

Describe the bug

According to this, transformers should work with CLI

However, I can't seem to get variant groups working. Is there something special I need to do?

Reproduction

Something like this wouldn't work when using CLI

System Info

  • Next.js 13
  • UnoCSS CLI

Running CLI like this:

"scripts": {
    "dev": "concurrently \"next dev\" \"npm run dev:css\"",
    "build": "npm run build:css && next build",
    "dev:css": "unocss -c uno.config.ts -o styles/uno.css -w app/**",
    "build:css": "unocss -c uno.config.ts -o styles/uno.css app/**"
  },

Validations

@steakscience
Copy link
Contributor Author

steakscience commented Nov 30, 2023

After adding the --write-transformed flag, it does work (but rewrites the original code), even without adding transformers in the UnoCSS config file.

Not sure if that is the intended behavior.

Is it possible to use transformers without using --write-transformed? Ideally, I don't want the original code to be overwritten.

Copy link

stale bot commented Jan 30, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 30, 2024
@stale stale bot closed this as completed Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant