i using scss loader load scss files in project through webpack. works fine css. css formed leaks out of components i.e. if same css class declared outside of component, gets overridden the 1 outside of component. can please tell me if webpack has configuration allows css scoped limited javascript class in it imported , not getting exposed globally ? samir
what you're looking css modules.
github repo has information need, in short, turns style files local component require
s/import
s it.
in order make style element scope globally can use :global()
pseudo class.