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

Qwik double build generates empty css file when mangling is enabled #266

Closed
Machy8 opened this issue Jul 24, 2023 · 4 comments · Fixed by #276
Closed

Qwik double build generates empty css file when mangling is enabled #266

Machy8 opened this issue Jul 24, 2023 · 4 comments · Fixed by #276
Labels
🐞 bug Something isn't working

Comments

@Machy8
Copy link
Member

Machy8 commented Jul 24, 2023

Describe the bug

.

Reproduction

.

Logs

No response

System Info

.
@Machy8 Machy8 added the 🐞 bug Something isn't working label Jul 24, 2023
@petersrule
Copy link

petersrule commented Oct 27, 2023

Yes this is a big problem. It used to just generate an empty CSS file (global.css). Then I turned off the mangling(mangleSelectors: false) in the compiler and then it worked for a while, and then it started just messing up the CSS file referenced above so it didn't work anymore. now it the Qwik dev server won't get started fully to serve files. I think I will have to go back to Tailwind.

For more understanding, the issue often happened when I changed a class in the TSX file.

=> class="margin:0_2rem"

It was that class or adding the class attribute to the HTML element or changing the class.

@Machy8
Copy link
Member Author

Machy8 commented Oct 27, 2023

Hi @petersrule, do you have any other configuration? Like matching/ignore areas? I will look into it. I though, this is caused randomly, but it seems it's not.

@petersrule
Copy link

petersrule commented Oct 27, 2023 via email

@Machy8 Machy8 linked a pull request Apr 11, 2024 that will close this issue
@Machy8
Copy link
Member Author

Machy8 commented Apr 11, 2024

@petersrule Hi, I am not sure if you still use Stylify but in case you do:

Drop the Unplugin.
Add bundler into vite config https://stylifycss.com/en/docs/get-started/bundling-files.

In case you want to split those tasks, run paralel tasks with concurrently like here https://stylifycss.com/en/docs/integrations/remix/

I have been thinking about plugins and integrations and I don't think, it's the right way. So I am dropping them all in favor of bundler.

The longer why: #274

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants