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

windicss does not apply all styles when after build #239

Closed
cawa-93 opened this issue Sep 24, 2021 · 1 comment
Closed

windicss does not apply all styles when after build #239

cawa-93 opened this issue Sep 24, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@cawa-93
Copy link

cawa-93 commented Sep 24, 2021

Describe the bug
Sometimes windicss does not apply all styles when you first dev server run. In such cases, it is enough to reload the page and then all styles are applied as expected.

Minimal Reproductions

  1. Clone repo: https://github.com/cawa-93/windicss-issue
  2. Run npm run dev
  3. After server start await a few seconds.
  4. Open dev server url http://localhost:3000/
  5. You can see that the styles were not applied. Unfortunately, in the demonstration repo, this problem is not reproduced every time and I do not understand why, in a larger project it happens every time. You may have to try several times before the problem recurs. зображення. If reload page then styles will be loaded
    зображення

Another Minimal Reproductions

  1. Clone repo
  2. Run npm run dev
  3. Open dev server url http://localhost:3000/
  4. Reload the browser page to ensure that the styles are applied.
  5. Restart the dev server without closing the page in the browser. You can see that the opened page has been updated and the styles are missing.

Versions

  • vite-plugin-windicss: 1.4.5
  • vite: 2.5.4
  • framework(vue/react/svelte/etc): none

Additonal Context
OS: Windows 10
Browser: Firefox 93.0b9

@cawa-93 cawa-93 added the bug Something isn't working label Sep 24, 2021
@cawa-93 cawa-93 changed the title Sometimes windicss does not apply all styles when you first dev server run windicss does not apply all styles when after build Sep 29, 2021
@cawa-93 cawa-93 closed this as completed Sep 29, 2021
@cawa-93
Copy link
Author

cawa-93 commented Sep 29, 2021

Same as #243

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

No branches or pull requests

1 participant