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

transformer-compile-class does not work with *.phtml and *.php files #1939

Closed
pbuzdin opened this issue Nov 30, 2022 · 1 comment
Closed

Comments

@pbuzdin
Copy link
Contributor

pbuzdin commented Nov 30, 2022

transformer-compile-class does not work with classes inside *.phtml and *.php files

I created an example for this issue https://codesandbox.io/s/recursing-bhaskara-q930ho?file=/package.json:105-209

There are 3 files in src folder: phtml, php and html

You can run an npm for them:
npm run build-phtml
npm run build-php
npm run build-html

pbuzdin added a commit to pbuzdin/unocss that referenced this issue Nov 30, 2022
@pbuzdin pbuzdin changed the title transformer-compile-class does not works with *.phtml and *.php files transformer-compile-class does not work with *.phtml and *.php files Nov 30, 2022
@antfu antfu closed this as completed Dec 1, 2022
@pbuzdin
Copy link
Contributor Author

pbuzdin commented Dec 1, 2022

@antfu it now correctly updates class names. in php and phtml files!

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

No branches or pull requests

2 participants