Closed Brenosalv closed 3 days ago
Having multiple less css modules is returning these warnings:
It's like webpack does not handle conflicting importing order between the css modules with Gatsby.
Possible solutions:
I think we are fine with this. We do not use a lot of nesting and specificity in our styling so it should not cause any big issues.
Created an issue for the css order conflicts: https://github.com/estuary/marketing-site/issues/474.
Contributes to https://github.com/estuary/marketing-site/issues/455
Tech debt Currently the global CSS code
style.less
includes a bunch of non-global classes and other styles. Having a single, large CSS file like style.less with around 5800 lines of code can impact both performance and maintainability.Expected Implement code splitting by moving each chunk of CSS to their specific folders where they are used and keep the
style.less
with only the global CSS code.Screenshots It has 5886 lines of code:
commons.css: