reactjs – Divide common SASS styles into one css part in React instead of duplicate CSS

In the CRA React App I have a common style guide in SCSS which are imported into module-level scss files using @use, also by using darts SASS.

I have changed the references from @import to @use and expected that Webpack will handle as common code, will create a separate chunk

Problem

How to make one common part into a common style guide.

Screenshots

enter image description here

Leave a Comment