Closed Samuel-Therrien-Beslogic closed 1 week ago
See Sass: @import is Deprecated
@import
I landed on this article after noticing that the entire global app CSS was being written multiple times in the page source on Cannopeum.
Changing @import '../App.scss' to @use '../App.scss' as * everywhere should the trick to have access to the variables.
Yikes!
Fixed !
However the small fix applied above wasn't sufficient. Whilst rsuite is no longer loaded multiple times, bootstrap and our own style still are
This is making re-rendering of CSS unecessarily slow and debugging especially annoying.
See Sass:
@import
is DeprecatedI landed on this article after noticing that the entire global app CSS was being written multiple times in the page source on Cannopeum.
Changing @import '../App.scss' to @use '../App.scss' as * everywhere should the trick to have access to the variables.
Yikes!
Fixed !
However the small fix applied above wasn't sufficient. Whilst rsuite is no longer loaded multiple times, bootstrap and our own style still are
This is making re-rendering of CSS unecessarily slow and debugging especially annoying.