You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two css files a.css and b.css and index.tsx initing React application:
a.css
.test {
color: red;
}
b.css
.test2 {
color: green;
}
index.tsx
import React from 'react';
import {createRoot} from 'react-dom/client';
import './a.css';
import './b.css';
createRoot(document.getElementById('root') as Element).render(<div className="test test2">text</div>);
When I start the dev server, the CSS order is correct. The div's color is green, but if a change the order of imports to
import './b.css';
import './a.css';
and reload the page, the order of CSS won't change and the div's color will still be green. But if I completely restart the dev server, the CSS order will be fixed
Reproduce link
maybe_later_sorry
Reproduce Steps
Start the dev server
Change CSS imports order in a tsx file
The dev server won't reoder the CSS classes
The text was updated successfully, but these errors were encountered:
Version
System:
OS: macOS 13.4
CPU: (12) arm64 Apple M2 Pro
Memory: 140.86 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Browsers:
Chrome: 129.0.6668.89
Safari: 16.5
Details
I have two css files
a.css
andb.css
andindex.tsx
initing React application:a.css
b.css
index.tsx
When I start the dev server, the CSS order is correct. The
div
's color is green, but if a change the order of imports toand reload the page, the order of CSS won't change and the
div
's color will still be green. But if I completely restart the dev server, the CSS order will be fixedReproduce link
maybe_later_sorry
Reproduce Steps
The text was updated successfully, but these errors were encountered: