In React applications, why are scss common styles repeatedly introduced because of the number of components?

problem description

I use React to build a multi-page application. There is a common style global.scss, but there is no import anywhere (even if I try to import once in index.js). The problem is that as the development progress becomes more and more stuck in chrome debugging, it is shown that it is very difficult to load style after clicking the html tag. If you take a look at how many react components are found in the application, global.scss will be referenced many times. So the chrome is shown in the following figure:

I don"t know why this happens. Is there any solution? thank you.
(the project structure is that the defined global.scss; component is composed of jsx and scss. The variables in the scss of the component are useful to global.scss, such as $color03, but there is no @ import global.scss, and there is still the problem of repeated import after trying @ import)


encounter the same problem, ask


has the landlord solved this problem? I have also encountered


globally referenced scss files (such as index.scss), do not put the specific css code. Should only put scss variables, functions, mixtures, etc., things that will not cause pollution. If it is a css style file that you want to reference globally, you can quote it once in the entry js.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b384a2-2ae46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b384a2-2ae46.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?