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

CSS Compatible seems to be different in local and in production #49105

Closed
AsuraKev opened this issue May 29, 2024 · 1 comment
Closed

CSS Compatible seems to be different in local and in production #49105

AsuraKev opened this issue May 29, 2024 · 1 comment

Comments

@AsuraKev
Copy link

Reproduction link

https://ant.design/docs/react/compatible-style#tailwindcss-arrange-layer

Steps to reproduce

Configure the layers like so

@layer tailwind-base,
reset,
antd;
@import url('antd/dist/reset.css') layer(reset);
@layer tailwind-base {
@tailwind base;
}

What is expected?

order of precendence should be

  1. tailwind
  2. reset.css
  3. antd

What is actually happening?

it works fine on local but on prod the sequence is different

  1. antd
  2. tailwind
  3. reset.css
Environment Info
antd 5.17.4
React 18.2
System web
Browser chrome
@AsuraKev
Copy link
Author

local:
image

production:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant