Answer the question
In order to leave comments, you need to log in
How to control the order of inclusion of css?
I use modules: normalize.css and styled-components
Problem: the styles of the first one are included later than the second, therefore, they are interrupted with the same selectors.
Is there any way to control the order in which styles are included? (it is necessary that normalize.css be the first in the list of included styles)
Can normalize.css be connected somehow through the webpack config? (I use only: style-loader, css-loader)
import 'normalize.css';
import './styles/global.css';
ReactDOM.render(
<Provider store={store}>
<ThemeProvider theme={theme || themeDefault}>
<ConnectedRouter history={history}>
<Router />
</ConnectedRouter>
</ThemeProvider>
</Provider>,
document.getElementById('root')
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question