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

Bug with utility class which contains trailing slash #24

Closed
MarvinMiles opened this issue Jun 7, 2023 · 2 comments · Fixed by #25
Closed

Bug with utility class which contains trailing slash #24

MarvinMiles opened this issue Jun 7, 2023 · 2 comments · Fixed by #25

Comments

@MarvinMiles
Copy link

MarvinMiles commented Jun 7, 2023

Hello!
I have last strange bug I faced with.

Vite+Vue

Reproduction link: https://replit.com/@MarvinMiles/css-mangle-bug.

During dev:
Screen Shot 2023-06-07 at 14 59 11

During preview after build:
Screen Shot 2023-06-07 at 15 01 38

bg-red-500/50 transformed intotw-g/50 and output CSS file does not contain that class.

It was hard to reproduce. Bug appears at strange conditions. For example, removing parent div makes it work properly.

sonofmagic added a commit that referenced this issue Jun 7, 2023
@sonofmagic
Copy link
Owner

Hi!
This issue is caused by the fact that there is no exact match when replacing the class string.
Corresponding unit tests have been added and this problem has been fixed in version 1.2.4

Thanks for your report. :)

@MarvinMiles
Copy link
Author

Confirm! Thank you for fast response :)

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 a pull request may close this issue.

2 participants